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:
|
||||
- master
|
||||
|
||||
env:
|
||||
TEST_TAG: donkie/spoolman:test
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -22,8 +19,13 @@ jobs:
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
load: true
|
||||
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:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@@ -35,8 +37,13 @@ jobs:
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: ./tests_integration
|
||||
load: true
|
||||
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:
|
||||
needs: [build, build-tester]
|
||||
strategy:
|
||||
@@ -46,6 +53,14 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
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
|
||||
with:
|
||||
compose-file: "./tests_integration/docker-compose-${{ matrix.dbtype }}.yml"
|
||||
|
||||
Reference in New Issue
Block a user