Repository navigation
65 lines (51 loc) · 1.53 KB
/
Copy pathtest.yml
File metadata and controls
65 lines (51 loc) · 1.53 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
58
59
60
61
62
63
64
65
# This is a basic workflow to help you get started with Actions
name: Tests
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches:
- master
- v3.2-dev
pull_request:
branches:
- master
- v3.2-dev
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Add wasm toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: wasm32-unknown-unknown
- uses: actions/checkout@v4
# https://github.com/jlumbroso/free-disk-space
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
large-packages: false
- name: Install Protoc
uses: arduino/setup-protoc@v3
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: "true"
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2023-09-20
components: rustfmt
- name: Check fmt
run: cargo +nightly-2023-09-20 fmt --all -- --check
- name: Check try-runtime
run: cargo check --features try-runtime
- name: Check runtime-benchmarks
run: cargo check --features runtime-benchmarks
- name: Run tests
run: cargo test --all