forked from FlowwStar/FlowStar
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 931 Bytes
/
Copy pathcontract-ci.yml
File metadata and controls
42 lines (35 loc) · 931 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
name: Contract CI
on:
push:
branches: [main]
paths:
- 'contracts/**'
- '.github/workflows/contract-ci.yml'
pull_request:
branches: [main]
paths:
- 'contracts/**'
- '.github/workflows/contract-ci.yml'
jobs:
contract:
runs-on: ubuntu-latest
defaults:
run:
working-directory: contracts
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
# Change this from 1.84 to 'stable' to support Edition 2024
toolchain: stable
targets: wasm32v1-none
components: clippy, rustfmt
- name: Build Contracts
run: cargo build --target wasm32v1-none --release
- name: Test
run: cargo test
- name: Clippy
run: cargo clippy --all-targets -- -D warnings
- name: Format check
run: cargo fmt --all -- --check