Skip to content

Commit

Permalink
ci: Update test.yml to use Ubuntu instead of macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
microshine committed May 22, 2024
1 parent cf24a47 commit 092e32a
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push, pull_request]

jobs:
build:
runs-on: macos-latest
runs-on: ubuntu-latest

strategy:
matrix:
Expand All @@ -20,11 +20,24 @@ jobs:

- name: Install SoftHSM
run: |
brew install softhsm
sudo apt-get update -y
sudo apt-get install -y softhsm2
echo "SoftHSM2 is installed"
echo "directories.tokendir = ${{ github.workspace }}/token" > softhsm2.conf
echo "objectstore.backend = file" >> softhsm2.conf
echo "log.level = ERROR" >> softhsm2.conf
echo "slots.removable = false" >> softhsm2.conf
echo "slots.mechanisms = ALL" >> softhsm2.conf
echo "library.reset_on_fork = false" >> softhsm2.conf
mkdir -p ${{ github.workspace }}/token
softhsm2-util --init-token --so-pin "12345" --pin "12345" --slot 0 --label "My slot 0"
env:
SOFTHSM2_CONF: ${{ github.workspace }}/softhsm2.conf

- name: Install NSS
run: brew install nss
run: |
sudo apt-get update -y
sudo apt-get install -y libnss3-tools
- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand Down

0 comments on commit 092e32a

Please sign in to comment.