File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed
Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change 11name : test
22
3- on : [push, pull_request]
3+ on :
4+ push :
5+ branches :
6+ - " *"
7+ tags-ignore :
8+ - " *"
9+ pull_request :
10+ branches :
11+ - " *"
412
513jobs :
614 build :
@@ -17,23 +25,26 @@ jobs:
1725 uses : actions/setup-node@v4
1826 with :
1927 node-version : ${{ matrix.node-version }}
20-
28+
2129 - name : Install SoftHSM
2230 run : |
2331 sudo apt-get update -y
2432 sudo apt-get install -y softhsm2
2533 echo "SoftHSM2 is installed"
34+ # Create a configuration file
2635 echo "directories.tokendir = ${{ github.workspace }}/token" > softhsm2.conf
2736 echo "objectstore.backend = file" >> softhsm2.conf
2837 echo "log.level = ERROR" >> softhsm2.conf
2938 echo "slots.removable = false" >> softhsm2.conf
3039 echo "slots.mechanisms = ALL" >> softhsm2.conf
3140 echo "library.reset_on_fork = false" >> softhsm2.conf
41+ # Create a directory for the token
3242 mkdir -p ${{ github.workspace }}/token
43+ # Create a symlink to the SoftHSM library
3344 softhsm2-util --init-token --so-pin "12345" --pin "12345" --slot 0 --label "My slot 0"
3445 env :
3546 SOFTHSM2_CONF : ${{ github.workspace }}/softhsm2.conf
36-
47+
3748 - name : Install NSS
3849 run : |
3950 sudo apt-get update -y
4253 - name : Get yarn cache directory path
4354 id : yarn-cache-dir-path
4455 run : echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
45-
56+
4657 - uses : actions/cache@v4
4758 id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
4859 with :
You can’t perform that action at this time.
0 commit comments