mirror of
https://github.com/Borales/actions-yarn.git
synced 2026-04-05 12:22:22 +08:00
Adding PR tests
This commit is contained in:
parent
ed3b33b7fe
commit
6f4d654ec1
22
.github/main.workflow
vendored
22
.github/main.workflow
vendored
@ -1,6 +1,6 @@
|
||||
workflow "Build and Publish" {
|
||||
on = "push"
|
||||
resolves = "Docker Publish"
|
||||
on = "push"
|
||||
}
|
||||
|
||||
action "Shell Lint" {
|
||||
@ -47,3 +47,23 @@ action "Docker Publish" {
|
||||
uses = "actions/docker/cli@master"
|
||||
args = "push borales/yarn"
|
||||
}
|
||||
|
||||
workflow "Pull Request" {
|
||||
on = "pull_request"
|
||||
resolves = ["Docker Lint [PR]", "Shell Lint [PR]", "Test [PR]"]
|
||||
}
|
||||
|
||||
action "Docker Lint [PR]" {
|
||||
uses = "docker://replicated/dockerfilelint"
|
||||
args = "[\"Dockerfile\"]"
|
||||
}
|
||||
|
||||
action "Shell Lint [PR]" {
|
||||
uses = "actions/bin/shellcheck@master"
|
||||
args = "entrypoint.sh"
|
||||
}
|
||||
|
||||
action "Test [PR]" {
|
||||
uses = "actions/bin/bats@master"
|
||||
args = "test/*.bats"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user