@@ -40,14 +40,16 @@ jobs:
4040 54.185.253.63:443
4141
4242 - name : Setup Node.js environment
43- uses : actions/setup-node@v4
43+ uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
4444 with :
4545 node-version : 18.x
4646
47- - uses : actions/checkout@v4
47+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
48+ with :
49+ submodules : recursive
4850
4951 - name : Cache node modules
50- uses : actions/cache@v4
52+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
5153 env :
5254 cache-name : cache-node-modules
5355 with :
@@ -57,28 +59,32 @@ jobs:
5759 key : ${{ runner.os }}-build-${{ secrets.CACHE_VERSION }}-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}
5860 restore-keys : |
5961 ${{ 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
6562
6663 - name : Install contracts dependencies
6764 run : |
6865 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
6975
7076 - name : Compile
7177 run : |
7278 yarn hardhat compile
7379 working-directory : contracts
7480
75- - name : Test with coverage
81+ - name : Run Hardhat tests with coverage
7682 run : |
7783 yarn hardhat coverage --solcoverjs ./.solcover.js --temp artifacts --testfiles './test/**/*.ts' --show-stack-traces
7884 working-directory : contracts
7985
8086 - name : Upload a build artifact
81- uses : actions/upload-artifact@v4
87+ uses : actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
8288 with :
8389 name : code-coverage-report
8490 path : contracts/coverage
0 commit comments