-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (41 loc) · 947 Bytes
/
ci.yml
File metadata and controls
46 lines (41 loc) · 947 Bytes
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
43
44
45
46
name: CI
env:
CI: true
on:
push:
branches:
- main
pull_request:
branches: ['*', '**/*']
jobs:
lint-and-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up environment
uses: ./.github/actions/setup
- name: Lint
run: yarn lint
- name: Build
run: yarn build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FORGE_SNAPSHOT_CHECK: true
test-forge:
runs-on: ubuntu-latest
needs: lint-and-build
steps:
- uses: actions/checkout@v4
- name: Set up environment
uses: ./.github/actions/setup
- name: Test
run: yarn test:forge-with-hardhat
test-hardhat:
runs-on: ubuntu-latest
needs: lint-and-build
steps:
- uses: actions/checkout@v4
- name: Set up environment
uses: ./.github/actions/setup
- name: Test
run: yarn test:hardhat