forked from sprintertech/sygma-solidity
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 868 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Test
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install --frozen-lockfile --non-interactive
- name: Compile contracts
run: npx hardhat compile
- name: Store contract artifacts
uses: actions/upload-artifact@v3
with:
name: contracts-artifacts
path: artifacts
- name: Hardhat Tests
run:
yarn run test
- name: Coverage
if: ${{ success() }}
run: npx hardhat coverage