-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 1.17 KB
/
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
36
37
38
39
40
41
42
43
name: test
on:
push:
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
env:
OPTIMISM_RPC_URL: ${{ secrets.OPTIMISM_RPC_URL }}
EXPO_PUBLIC_ALCHEMY_API_KEY: test
EXPO_PUBLIC_ALCHEMY_GAS_POLICY_ID: test
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
with:
version: ">=9.12.3"
run_install: false
- uses: actions/setup-node@v4
with:
node-version: ">=22.10.0"
cache: pnpm
- uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-25f24e677a6a32a62512ad4f561995589ac2c7dc
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
cache-dependency-path: contracts/requirements.txt
- run: pip install -r contracts/requirements.txt
- run: pnpm install --frozen-lockfile
- run: pnpm run --recursive --aggregate-output --no-bail build
- run: pnpm test --recursive --aggregate-output --no-bail
- uses: codecov/codecov-action@v4
if: always()
with:
token: ${{ secrets.CODECOV_TOKEN }}