-
Notifications
You must be signed in to change notification settings - Fork 819
54 lines (49 loc) · 1.35 KB
/
wasmer-config.yaml
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
# Dedicated workflow just for the wasmer-config crate
name: wasmer-config
on:
push:
branches:
- main
pull_request:
# Automatically cancel previous workflow runs when a new commit is pushed.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
DEFAULT_CRATE_NAME: wasmer_toml
jobs:
check:
name: Compile and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Setup Rust
uses: dsherret/rust-toolchain-file@v1
- name: Install Nextest
uses: taiki-e/install-action@nextest
- name: Type Checking
run: |
cd lib/config && cargo check --verbose --locked
- name: Build
run: |
cd lib/config && cargo build --verbose --locked
- name: Test
run: |
cd lib/config && cargo nextest run --verbose --locked
lints:
name: Linting and Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Setup Rust
uses: dsherret/rust-toolchain-file@v1
- name: Check Formatting
run: |
cd lib/config && cargo fmt --verbose --check
- name: Clippy
run: |
cd lib/config && cargo clippy --verbose