generated from 0age/foundry-template
-
Notifications
You must be signed in to change notification settings - Fork 25
42 lines (36 loc) · 927 Bytes
/
tests.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
42
name: Test and lint
permissions: read-all
on:
pull_request_target:
branches:
- main
jobs:
tests:
name: Run Tests
runs-on: ubuntu-latest
environment: build
steps:
- uses: actions/checkout@v3
with:
ref: "refs/pull/${{ github.event.number }}/merge"
- name: Install Foundry
uses: onbjerg/foundry-toolchain@v1
with:
version: nightly
- name: Install dependencies
run: forge install
- name: Run tests
run: forge test --fork-url ${{ secrets.ETH_RPC_URL }} -vv
lint:
name: Run Lint
runs-on: ubuntu-latest
environment: build
steps:
- uses: actions/checkout@v3
with:
ref: "refs/pull/${{ github.event.number }}/merge"
- uses: actions/setup-node@v2
with:
node-version: 12.x
- run: yarn install --frozen-lockfile
- run: yarn lint:check