Skip to content

Commit

Permalink
chore(actions): switch back to license
Browse files Browse the repository at this point in the history
  • Loading branch information
Kharya1337 committed Feb 1, 2024
1 parent 1420590 commit 69be4a3
Showing 1 changed file with 3 additions and 23 deletions.
26 changes: 3 additions & 23 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push]

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

strategy:
matrix:
Expand All @@ -13,25 +13,8 @@ jobs:
steps:
- name: Setup Soft HSM
run: |
sudo apt-get update -y
sudo apt-get install -y softhsm2
echo "SoftHSM2 is installed"
# Create a configuration file
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
# Create a directory for the token
mkdir -p ${{ github.workspace }}/token
# Create a symlink to the SoftHSM library
brew install softhsm
softhsm2-util --init-token --so-pin "12345" --pin "12345" --slot 0 --label "My slot 0"
env:
SOFTHSM2_CONF: ${{ github.workspace }}/softhsm2.conf

- name: Install PCSC
run: sudo apt-get install libpcsclite1 libpcsclite-dev
- uses: actions/checkout@v4

Expand All @@ -44,7 +27,7 @@ jobs:
run: npm install -g yarn

- name: restore lerna
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
Expand All @@ -57,9 +40,6 @@ jobs:

- name: Run test with coverage
run: npm run coverage
env:
SOFT_HSM_LIBRARY: /usr/lib/softhsm/libsofthsm2.so
SOFTHSM2_CONF: ${{ github.workspace }}/softhsm2.conf

- name: Coveralls
uses: coverallsapp/github-action@master
Expand Down

0 comments on commit 69be4a3

Please sign in to comment.