generated from veeso-dev/rust-template
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1014 Bytes
/
build-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
36
37
38
39
40
41
42
name: build-test
on:
pull_request:
paths-ignore:
- "*.md"
push:
paths-ignore:
- "*.md"
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt update && sudo apt install -y libssl-dev pkg-config jq && cargo install cargo-make
- name: Install Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install yarn
run: npm install -g yarn
- name: Install dfx
run: echo y | sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Test
run: cargo make test
- name: Integration tests
run: cargo make dfx-test
- name: Format
run: cargo make check-format
- name: Clippy
run: cargo make lint