-
Notifications
You must be signed in to change notification settings - Fork 13
43 lines (39 loc) · 956 Bytes
/
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
43
# .github/workflows/test.yml
name: Test
on:
push:
branches:
- main
- release/**
pull_request:
branches:
- main
- release/**
jobs:
cleanliness:
name: cleanliness ${{ matrix.target }}
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-apple-darwin
os: macos-latest
- target: x86_64-pc-windows-msvc
os: windows-latest
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Install Rust Toolchain Components
uses: actions-rs/toolchain@v1.0.7
with:
toolchain: stable
components: rustfmt, clippy
target: ${{ matrix.target }}
override: true
- name: Clippy
run: cargo clippy
- name: Rustfmt
run: cargo fmt --all -- --check