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
|
TEST_TAG: donkie/spoolman:test
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
build:
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
dbtype: ["postgres"]
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -27,12 +24,28 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
load: true
|
load: true
|
||||||
tags: donkie/spoolman:test
|
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
|
- name: Build Spoolman Tester
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: ./tests_integration
|
context: ./tests_integration
|
||||||
load: true
|
load: true
|
||||||
tags: donkie/spoolman-tester:latest
|
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
|
- uses: isbang/compose-action@v1.4.1
|
||||||
with:
|
with:
|
||||||
compose-file: "./tests_integration/docker-compose-${{ matrix.dbtype }}.yml"
|
compose-file: "./tests_integration/docker-compose-${{ matrix.dbtype }}.yml"
|
||||||
|
|||||||
Reference in New Issue
Block a user