mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-01-17 09:28:05 +00:00
Use artifacts
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
345ae2be69
commit
c97680772d
1 changed files with 45 additions and 1 deletions
46
.github/workflows/test.yml
vendored
46
.github/workflows/test.yml
vendored
|
|
@ -23,16 +23,60 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
uses: ./.github/workflows/build.yml
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository and submodules
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: Build in container
|
||||||
|
run: ./tests/build-in-docker.sh
|
||||||
|
- name: Export image
|
||||||
|
run: |
|
||||||
|
mkdir -p artifacts
|
||||||
|
docker save pico-hsm-test:bullseye -o artifacts/docker-image.tar
|
||||||
|
- name: Temporarily save image
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: docker-artifact
|
||||||
|
path: artifacts
|
||||||
|
retention-days: 1
|
||||||
|
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout repository and submodules
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: Retrieve saved image
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: docker-artifact
|
||||||
|
path: artifacts
|
||||||
|
- name: Load image
|
||||||
|
run: |
|
||||||
|
cd artifacts
|
||||||
|
docker load -q -i docker-image.tar
|
||||||
- name: Test PCSC (pytest)
|
- name: Test PCSC (pytest)
|
||||||
run: ./tests/run-test-in-docker.sh
|
run: ./tests/run-test-in-docker.sh
|
||||||
test_pkcs11:
|
test_pkcs11:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout repository and submodules
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: Retrieve saved image
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: docker-artifact
|
||||||
|
path: artifacts
|
||||||
|
- name: Load image
|
||||||
|
run: |
|
||||||
|
cd artifacts
|
||||||
|
docker load -q -i docker-image.tar
|
||||||
- name: Test PKCS11
|
- name: Test PKCS11
|
||||||
run: ./tests/run-test-pkcs11-in-docker.sh
|
run: ./tests/run-test-pkcs11-in-docker.sh
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue