1
0
Fork 0
mirror of https://github.com/karancode/yamllint-github-action.git synced 2024-08-16 10:19:48 +02:00
yamllint/.github/workflows/test.yml
Richard Steinbrück dd59165b84
Add testing framework bats and fix #4 (#5)
* Fix mdl issues

* Add bats as testing framework

* Fix #4

* Add GitHub codeowner file

* Add Dependabot config

* Add github workflow for testing

* don't comment if yamllint is successful (fixes #2)

* remove GITHUB_EVENT.json
2020-04-28 17:39:44 +09:00

37 lines
811 B
YAML

name: "Continuous Integration"
on:
push:
branches-ignore:
- 'dependabot/*'
schedule:
- cron: '22 22 * * 5'
jobs:
lint:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v2
- name: Markdown Lint
uses: actionshub/markdownlint@v1.0.0
- name: Dockerfile Lint
uses: burdzwastaken/hadolint-action@1.6.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HADOLINT_ACTION_DOCKERFILE_FOLDER: .
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install bats
run: sudo apt-get -y install bats > /dev/null
- name: Run CI script
run: ./tests/run.bats
- name: Run action
uses: ./
with:
yamllint_file_or_dir: "./tests/data/single_files/file2.yml"