mirror of
https://github.com/koenrh/dnscontrol-action.git
synced 2025-01-10 17:18:37 +08:00
Merge pull request #12 from koenrh/migrating-to-yaml-syntax
Migrate GitHub Actions workflow to new YAML syntax
This commit is contained in:
commit
da05d34ceb
2 changed files with 24 additions and 19 deletions
19
.github/main.workflow
vendored
19
.github/main.workflow
vendored
|
@ -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
24
.github/workflows/test.yml
vendored
Normal 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
|
Loading…
Reference in a new issue