1
0
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:
Paul-Christian Volkmer 2023-08-10 18:29:25 +02:00
parent 2ec5e27a40
commit 2264d85bd1
2 changed files with 17 additions and 8 deletions

View File

@ -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

View File

@ -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