Split action into multiple jobs
This commit is contained in:
21
.github/workflows/integration-test.yml
vendored
21
.github/workflows/integration-test.yml
vendored
@@ -11,10 +11,7 @@ env:
|
||||
TEST_TAG: donkie/spoolman:test
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
strategy:
|
||||
matrix:
|
||||
dbtype: ["postgres"]
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -27,12 +24,28 @@ jobs:
|
||||
context: .
|
||||
load: true
|
||||
tags: donkie/spoolman:test
|
||||
build-tester:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
- name: Build Spoolman Tester
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: ./tests_integration
|
||||
load: true
|
||||
tags: donkie/spoolman-tester:latest
|
||||
tests:
|
||||
needs: [build, build-tester]
|
||||
strategy:
|
||||
matrix:
|
||||
dbtype: ["postgres"]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- uses: isbang/compose-action@v1.4.1
|
||||
with:
|
||||
compose-file: "./tests_integration/docker-compose-${{ matrix.dbtype }}.yml"
|
||||
|
||||
Reference in New Issue
Block a user