4ccab0c4
—
Gal Schlezinger 5 years ago
Set up GH actions for contributions (#26)
- .github/workflows/rust.yml +10 -2
.github/workflows/rust.yml
CHANGED
|
@@ -8,9 +8,7 @@ on:
|
|
|
8
8
|
|
|
9
9
|
jobs:
|
|
10
10
|
build:
|
|
11
|
-
|
|
12
11
|
runs-on: ubuntu-latest
|
|
13
|
-
|
|
14
12
|
steps:
|
|
15
13
|
- uses: hecrj/setup-rust-action@v1
|
|
16
14
|
with:
|
|
@@ -20,3 +18,13 @@ jobs:
|
|
|
20
18
|
run: cargo build --verbose
|
|
21
19
|
- name: Run tests
|
|
22
20
|
run: cargo test --verbose
|
|
21
|
+
fmt:
|
|
22
|
+
runs-on: ubuntu-latest
|
|
23
|
+
steps:
|
|
24
|
+
- uses: hecrj/setup-rust-action@v1
|
|
25
|
+
with:
|
|
26
|
+
rust-version: nightly
|
|
27
|
+
components: rustfmt
|
|
28
|
+
- uses: actions/checkout@v1
|
|
29
|
+
- name: cargo fmt
|
|
30
|
+
run: cargo fmt -- --check
|