mirror of
https://github.com/dcarrillo/docker-nginx.git
synced 2025-01-05 00:06:47 +00:00
chore: Add tests to deployment workflow
This commit is contained in:
parent
acf3be229e
commit
2ef929dd28
5
.github/workflows/main.yml
vendored
5
.github/workflows/main.yml
vendored
@ -9,8 +9,6 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event_name == 'pull_request'
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
@ -28,8 +26,9 @@ jobs:
|
|||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- tests
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user