mirror of
https://github.com/pcvolkmer/etl-processor.git
synced 2025-04-19 17:26:51 +00:00
Run docker workflow after test workflow
This commit is contained in:
parent
2ec5e27a40
commit
2264d85bd1
9
.github/workflows/docker.yml
vendored
9
.github/workflows/docker.yml
vendored
@ -1,14 +1,13 @@
|
|||||||
name: "Run docker build and deploy"
|
name: "Run docker build and deploy"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_run:
|
||||||
tags: [ '*' ]
|
workflows: [ 'Run Tests' ]
|
||||||
|
types: [ 'completed' ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
|
||||||
uses: ./.github/workflows/test.yml
|
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
|
if: ${{ github.event.workflow_run.conclusion == 'success' && contains(github.event.ref, '/tags/') }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
16
.github/workflows/test.yml
vendored
16
.github/workflows/test.yml
vendored
@ -1,10 +1,8 @@
|
|||||||
name: "Run Tests"
|
name: 'Run Tests'
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
|
||||||
push:
|
push:
|
||||||
branches: [ 'master' ]
|
branches: [ 'master' ]
|
||||||
tags-ignore: [ '*' ]
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ '*' ]
|
branches: [ '*' ]
|
||||||
|
|
||||||
@ -24,5 +22,17 @@ jobs:
|
|||||||
- name: Execute tests
|
- name: Execute tests
|
||||||
run: ./gradlew test
|
run: ./gradlew test
|
||||||
|
|
||||||
|
integrationTests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
java-version: '17'
|
||||||
|
distribution: 'temurin'
|
||||||
|
|
||||||
|
- name: Setup Gradle
|
||||||
|
uses: gradle/gradle-build-action@v2.4.2
|
||||||
|
|
||||||
- name: Execute integration tests
|
- name: Execute integration tests
|
||||||
run: ./gradlew integrationTest
|
run: ./gradlew integrationTest
|
Loading…
x
Reference in New Issue
Block a user