-
Notifications
You must be signed in to change notification settings - Fork 18
35 lines (32 loc) · 928 Bytes
/
test.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
name: CI
on: [push]
env:
STARKNET_DEVNET_VERSION: 0.2.3
jobs:
lint-build-test:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js 22
uses: actions/setup-node@v2
with:
node-version: 22
cache: "yarn"
- name: Setup Rust Toolchain
uses: dtolnay/rust-toolchain@stable
- name: Restore Cargo
uses: actions/cache@v4
with:
path: ~/.cargo
key: ${{ runner.os }}-cargo-${{ env.STARKNET_DEVNET_VERSION }}
- name: Install Starknet Devnet
run: cargo install starknet-devnet@${{ env.STARKNET_DEVNET_VERSION }}
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- run: yarn --frozen-lockfile
- run: yarn build
- run: yarn typecheck
- run: yarn lint
- run: yarn test
- run: yarn test:integration