@@ -40,14 +40,16 @@ jobs:
40
40
54.185.253.63:443
41
41
42
42
- name : Setup Node.js environment
43
- uses : actions/setup-node@v4
43
+ uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
44
44
with :
45
45
node-version : 18.x
46
46
47
- - uses : actions/checkout@v4
47
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
48
+ with :
49
+ submodules : recursive
48
50
49
51
- name : Cache node modules
50
- uses : actions/cache@v4
52
+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
51
53
env :
52
54
cache-name : cache-node-modules
53
55
with :
@@ -57,28 +59,32 @@ jobs:
57
59
key : ${{ runner.os }}-build-${{ secrets.CACHE_VERSION }}-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}
58
60
restore-keys : |
59
61
${{ runner.os }}-build-${{ secrets.CACHE_VERSION }}-${{ env.cache-name }}-
60
-
61
- # - name: Install parent dependencies
62
- # run: |
63
- # echo "current dir: $PWD"
64
- # yarn install
65
62
66
63
- name : Install contracts dependencies
67
64
run : |
68
65
yarn workspace @kleros/kleros-v2-contracts install
66
+
67
+ - name : Install Foundry
68
+ uses : foundry-rs/foundry-toolchain@8f1998e9878d786675189ef566a2e4bf24869773 # v1.2.0
69
+ with :
70
+ version : nightly
71
+
72
+ - name : Run Foundry tests
73
+ run : forge test -vvv
74
+ working-directory : contracts
69
75
70
76
- name : Compile
71
77
run : |
72
78
yarn hardhat compile
73
79
working-directory : contracts
74
80
75
- - name : Test with coverage
81
+ - name : Run Hardhat tests with coverage
76
82
run : |
77
83
yarn hardhat coverage --solcoverjs ./.solcover.js --temp artifacts --testfiles './test/**/*.ts' --show-stack-traces
78
84
working-directory : contracts
79
85
80
86
- name : Upload a build artifact
81
- uses : actions/upload-artifact@v4
87
+ uses : actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
82
88
with :
83
89
name : code-coverage-report
84
90
path : contracts/coverage
0 commit comments