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"
|
||||
|
||||
on:
|
||||
push:
|
||||
tags: [ '*' ]
|
||||
workflow_run:
|
||||
workflows: [ 'Run Tests' ]
|
||||
types: [ 'completed' ]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
uses: ./.github/workflows/test.yml
|
||||
|
||||
docker:
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' && contains(github.event.ref, '/tags/') }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- 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:
|
||||
workflow_call:
|
||||
push:
|
||||
branches: [ 'master' ]
|
||||
tags-ignore: [ '*' ]
|
||||
pull_request:
|
||||
branches: [ '*' ]
|
||||
|
||||
@ -24,5 +22,17 @@ jobs:
|
||||
- name: Execute tests
|
||||
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
|
||||
run: ./gradlew integrationTest
|
Loading…
x
Reference in New Issue
Block a user