forked from mattstam/solidity-template
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 1003 Bytes
/
unit-test.yaml
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
---
name: Unit Tests
"on":
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
env:
MNEMONIC: ${{secrets.MNEMONIC}}
steps:
- name: Check out the repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Node.js
uses: actions/setup-node@v3
- name: Install the Node.js dependencies
run: npm i
- name: Install Foundry
uses: onbjerg/foundry-toolchain@v1
with:
version: nightly
- name: Show the Foundry config
run: forge config
- name: Run the tests
run: forge test
- name: Add test summary
run: |
echo "## Tests" >> $GITHUB_STEP_SUMMARY
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY