-
Notifications
You must be signed in to change notification settings - Fork 83
69 lines (54 loc) · 1.72 KB
/
main.yml
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
58
59
60
61
62
63
64
65
66
67
68
69
name: Next.js CI
on:
push:
paths:
- "packages/snfoundry/contracts/**"
- "packages/nextjs/**"
pull_request:
branches:
- main
paths:
- "packages/nextjs/**"
- "packages/snfoundry/contracts/**"
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [lts/*]
steps:
- name: Checkout
uses: actions/checkout@master
- name: Install scarb
run: curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh -s -- -v 2.8.2
- name: Install snfoundryup
run: curl -L https://raw.githubusercontent.com/foundry-rs/starknet-foundry/master/scripts/install.sh | sh
- name: Install snforge
run: snfoundryup -v 0.30.0
- name: Run snforge tests
run: snforge test
working-directory: ./packages/snfoundry/contracts
- name: Setup node env
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "yarn"
#cache-dependency-path: packages/nextjs/yarn.lock
- name: Install dependencies (Next.js)
run: yarn install --immutable
working-directory: ./packages/nextjs
- name: Check Code Format
run: yarn format:check
- name: Run Next.js lint
run: yarn next:lint --max-warnings=0
working-directory: ./packages/nextjs
- name: Check typings on Next.js
run: yarn next:check-types
working-directory: ./packages/nextjs
- name: Run Next.js tests
run: yarn test run
working-directory: ./packages/nextjs
- name: Build Next.js project
run: yarn build
working-directory: ./packages/nextjs