diff --git a/.github/main.workflow b/.github/main.workflow deleted file mode 100644 index 1bf97bf..0000000 --- a/.github/main.workflow +++ /dev/null @@ -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"] -} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..e8a9d0f --- /dev/null +++ b/.github/workflows/test.yml @@ -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