We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 800123b + 68b8bda commit afb9230Copy full SHA for afb9230
.github/workflows/main.yml
@@ -1,8 +1,19 @@
1
-on: [push, pull_request]
2
-
3
name: Ethane Rust
4
+# you can save compilation hours on Github if you only run this on pull
+# requests or when directly pushing to main branch
5
+on:
6
+ push:
7
+ branches: [main]
8
+ pull_request:
9
+
10
jobs:
11
+ fmt:
12
+ name: Formatting
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+ - run: cargo fmt -- --check
17
check:
18
name: Check
19
runs-on: ubuntu-latest
@@ -16,7 +27,6 @@ jobs:
27
- uses: actions-rs/cargo@v1
28
with:
29
command: check
20
30
test:
21
31
22
32
services:
@@ -42,4 +52,4 @@ jobs:
42
52
43
53
44
54
command: test
45
55
0 commit comments