We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1bca04 commit 5f45ee3Copy full SHA for 5f45ee3
.github/workflows/tests_and_checks.yml
@@ -1,10 +1,10 @@
1
name: Tests and checks
2
on:
3
push:
4
- branches:
5
- - main
+ pull_request:
+
6
jobs:
7
- test:
+ lint:
8
name: Linter
9
runs-on: ubuntu-latest
10
steps:
@@ -21,3 +21,25 @@ jobs:
21
run: yarn lint
22
- name: Run check types
23
run: yarn check-types
24
25
+ test:
26
+ name: Tests
27
+ runs-on: ubuntu-latest
28
+ steps:
29
+ - name: Checkout repo
30
+ uses: actions/checkout@v3
31
+ - name: Set up node
32
+ uses: actions/setup-node@v3
33
+ with:
34
+ node-version: 18
35
+ cache: 'yarn'
36
+ - name: Install Foundry
37
+ uses: foundry-rs/foundry-toolchain@v1
38
+ - name: Check Foundry installation
39
+ run: |
40
+ anvil --version
41
+ cast --version
42
+ - name: Install dependencies
43
+ run: yarn install --immutable
44
+ - name: Run tests
45
+ run: yarn test:run
0 commit comments