Skip to content

Commit 5f45ee3

Browse files
feat(orc-458): add simple CI action for tests
1 parent f1bca04 commit 5f45ee3

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

.github/workflows/tests_and_checks.yml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: Tests and checks
22
on:
33
push:
4-
branches:
5-
- main
4+
pull_request:
5+
66
jobs:
7-
test:
7+
lint:
88
name: Linter
99
runs-on: ubuntu-latest
1010
steps:
@@ -21,3 +21,25 @@ jobs:
2121
run: yarn lint
2222
- name: Run check types
2323
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

Comments
 (0)