-
Notifications
You must be signed in to change notification settings - Fork 6
56 lines (47 loc) · 1.19 KB
/
preferences.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: crw-preferences
on:
push:
branches:
- main
pull_request:
defaults:
run:
shell: bash
working-directory: packages/crw-preferences
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install latest rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
override: true
- name: Build
env:
CARGO_BIN_NAME: test
uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features
lints:
name: Lints (fmt + clippy)
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Run cargo fmt
run: CARGO_BIN_NAME=test cargo fmt --all -- --check
- name: Run cargo clippy
run: CARGO_BIN_NAME=test cargo clippy -- -D warnings
- name: Run cargo test
run: CARGO_BIN_NAME=test cargo test --all-features