Skip to content

Commit afb9230

Browse files
authored
Merge pull request th4s#1 from PopcornPaws/testing
Added formatter check to github actions.
2 parents 800123b + 68b8bda commit afb9230

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/main.yml

+14-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
1-
on: [push, pull_request]
2-
31
name: Ethane Rust
42

3+
# you can save compilation hours on Github if you only run this on pull
4+
# requests or when directly pushing to main branch
5+
on:
6+
push:
7+
branches: [main]
8+
pull_request:
9+
510
jobs:
11+
fmt:
12+
name: Formatting
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- run: cargo fmt -- --check
617
check:
718
name: Check
819
runs-on: ubuntu-latest
@@ -16,7 +27,6 @@ jobs:
1627
- uses: actions-rs/cargo@v1
1728
with:
1829
command: check
19-
2030
test:
2131
runs-on: ubuntu-latest
2232
services:
@@ -42,4 +52,4 @@ jobs:
4252
- uses: actions-rs/cargo@v1
4353
with:
4454
command: test
45-
55+

0 commit comments

Comments
 (0)