Another attempt at splitting up into multiple jobs
This commit is contained in:
25
.github/workflows/integration-test.yml
vendored
25
.github/workflows/integration-test.yml
vendored
@@ -7,9 +7,6 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
env:
|
|
||||||
TEST_TAG: donkie/spoolman:test
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -22,8 +19,13 @@ jobs:
|
|||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
load: true
|
|
||||||
tags: donkie/spoolman:test
|
tags: donkie/spoolman:test
|
||||||
|
outputs: type=docker,dest=/tmp/spoolman.tar
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: spoolman
|
||||||
|
path: /tmp/spoolman.tar
|
||||||
build-tester:
|
build-tester:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@@ -35,8 +37,13 @@ jobs:
|
|||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: ./tests_integration
|
context: ./tests_integration
|
||||||
load: true
|
|
||||||
tags: donkie/spoolman-tester:latest
|
tags: donkie/spoolman-tester:latest
|
||||||
|
outputs: type=docker,dest=/tmp/spoolman-tester.tar
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: spoolman-tester
|
||||||
|
path: /tmp/spoolman-tester.tar
|
||||||
tests:
|
tests:
|
||||||
needs: [build, build-tester]
|
needs: [build, build-tester]
|
||||||
strategy:
|
strategy:
|
||||||
@@ -46,6 +53,14 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
- name: Download built images
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
path: /tmp
|
||||||
|
- name: Load images
|
||||||
|
run: |
|
||||||
|
docker load --input /tmp/spoolman.tar
|
||||||
|
docker load --input /tmp/spoolman-tester.tar
|
||||||
- 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