forked from unicode-org/conformance
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 864 Bytes
/
run-rust.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
name: Run Rust tests
on:
push:
branches: [ main ]
pull_request:
branches: '*'
jobs:
rust_lint:
strategy:
fail-fast: false
matrix:
icu4x-version: [ '1.3', '1.4' ]
name: Lint ICU4X Rust executor
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.73
components: rustfmt, clippy
default: true
- uses: actions-rs/cargo@v1
name: "Run Clippy"
with:
command: clippy
args: --all-targets --all-features --manifest-path executors/rust/${{ matrix.icu4x-version }}/Cargo.toml
- uses: actions-rs/cargo@v1
name: "Run Rustfmt"
with:
command: fmt
args: --manifest-path executors/rust/${{ matrix.icu4x-version }}/Cargo.toml -- --check