-
Notifications
You must be signed in to change notification settings - Fork 22
57 lines (52 loc) · 1.67 KB
/
Copy pathci.yml
File metadata and controls
57 lines (52 loc) · 1.67 KB
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
47
48
49
50
51
52
53
54
55
56
57
name: ci
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
app:
name: app · lint, typecheck, unit tests, build
runs-on: ubuntu-latest
defaults:
run:
working-directory: app
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: app/package-lock.json
- run: npm ci --no-audit --no-fund
- run: npm run lint
- run: npx tsc --noEmit -p .
- run: npm test
- name: production build
env:
NEXT_PUBLIC_SITE_URL: https://openlaunch.lol
NEXT_PUBLIC_LAUNCH_FACTORY: "0x815542E8b392389A1389E22E588E4B62A67Ade72"
NEXT_PUBLIC_LAUNCH_LOCKER: "0xcd1680D26922fcd9CabFbb8a56bA40C333fD842a"
NEXT_PUBLIC_LAUNCH_FACTORY_ROBINHOOD: "0x815542E8b392389A1389E22E588E4B62A67Ade72"
NEXT_PUBLIC_LAUNCH_LOCKER_ROBINHOOD: "0xcd1680D26922fcd9CabFbb8a56bA40C333fD842a"
run: npm run build
contracts:
name: contracts · build + unit tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: contracts
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: foundry-rs/foundry-toolchain@v1
- run: forge build --sizes
- run: forge test --match-path test/LaunchFactory.t.sol -vv
- run: forge test --match-path test/LaunchFactory.arcGuard.t.sol -vv
- run: script/check-arc-factory.sh
# live-fork suites (FORK_TESTS=true) need RPC access and run locally before a release; see README