Code clean up in SET #130
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PKCS11 Tests | |
on: [push, pull_request] | |
jobs: | |
init: | |
name: Initialization | |
uses: ./.github/workflows/init.yml | |
secrets: inherit | |
build: | |
name: Waiting for build | |
needs: init | |
runs-on: ubuntu-latest | |
steps: | |
- name: Wait for build | |
uses: lewagon/[email protected] | |
with: | |
ref: ${{ github.ref }} | |
check-name: 'Building JSS' | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
wait-interval: 30 | |
if: github.event_name == 'push' | |
- name: Wait for build | |
uses: lewagon/[email protected] | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
check-name: 'Building JSS' | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
wait-interval: 30 | |
if: github.event_name == 'pull_request' | |
pkcs11-constants-test: | |
name: Testing PKCS11 Constants | |
needs: [init, build] | |
runs-on: ubuntu-latest | |
env: | |
SHARED: /tmp/workdir/jss | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
- name: Retrieve jss-runner image | |
uses: actions/cache@v3 | |
with: | |
key: jss-runner-${{ github.sha }} | |
path: jss-runner.tar | |
- name: Load jss-runner image | |
run: docker load --input jss-runner.tar | |
- name: Run container | |
run: | | |
IMAGE=jss-runner \ | |
NAME=jss \ | |
HOSTNAME=jss.example.com \ | |
tests/bin/runner-init.sh | |
- name: Install dependencies | |
run: docker exec jss dnf install -y nss-util-devel python3 java-devel | |
- name: Generate PKCS11 constants | |
run: | | |
docker exec jss python3 $SHARED/tools/build_pkcs11_constants.py \ | |
--pkcs11t /usr/include/nss3/pkcs11t.h \ | |
--pkcs11n /usr/include/nss3/pkcs11n.h \ | |
-o PKCS11Constants.java \ | |
--verbose | |
docker exec jss diff PKCS11Constants.java $SHARED/base/src/main/java/org/mozilla/jss/pkcs11/PKCS11Constants.java |