test runner
This commit is contained in:
parent
977238fe7d
commit
ad8ba72f71
1 changed files with 4 additions and 4 deletions
|
|
@ -19,7 +19,7 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
# ========== НОВАЯ ЗАДАЧА: просто проверяет, что код есть ==========
|
# ========== НОВАЯ ЗАДАЧА: просто проверяет, что код есть ==========
|
||||||
setup:
|
setup:
|
||||||
runs-on: ubuntu-latest
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
@ -28,7 +28,7 @@ jobs:
|
||||||
|
|
||||||
test:
|
test:
|
||||||
needs: setup # ← теперь зависит от setup
|
needs: setup # ← теперь зависит от setup
|
||||||
runs-on: ubuntu-latest
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
@ -54,7 +54,7 @@ jobs:
|
||||||
|
|
||||||
build-and-push:
|
build-and-push:
|
||||||
needs: test # ← зависит от test
|
needs: test # ← зависит от test
|
||||||
runs-on: ubuntu-latest
|
runs-on: docker
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -94,7 +94,7 @@ jobs:
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: build-and-push # ← зависит от build-and-push
|
needs: build-and-push # ← зависит от build-and-push
|
||||||
runs-on: ubuntu-latest
|
runs-on: docker
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue