Merge pull request #12 from koenrh/migrating-to-yaml-syntax

Migrate GitHub Actions workflow to new YAML syntax
This commit is contained in:
Koen Rouwhorst 2019-08-11 14:13:34 +02:00 committed by GitHub
commit da05d34ceb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 19 deletions

19
.github/main.workflow vendored
View file

@ -1,19 +0,0 @@
workflow "Run tests" {
on = "push"
resolves = ["Shellcheck", "Bats", "Dockerfilelint"]
}
action "Shellcheck" {
uses = "actions/bin/shellcheck@master"
args = "entrypoint.sh"
}
action "Bats" {
uses = "actions/bin/bats@master"
args = "test/*.bats"
}
action "Dockerfilelint" {
uses = "docker://replicated/dockerfilelint"
args = ["Dockerfile"]
}

24
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,24 @@
---
on: push
name: Test
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Dockerfilelint
uses: docker://replicated/dockerfilelint
with:
args: Dockerfile
- name: Bats
uses: actions/bin/bats@master
with:
args: test/*.bats
- name: ShellCheck
uses: actions/bin/shellcheck@master
with:
args: entrypoint.sh