Skip to content

Commit e65560b

Browse files
authored
ci: Check before build, build needs lint (#90)
1 parent 809bdb5 commit e65560b

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/build_and_test.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,24 @@ jobs:
2020
cargo fmt -- --check || (echo "Please reformat your code with 'cargo
2121
fmt' (version $(cargo fmt --version))"; false)
2222
23-
build:
23+
tests:
2424
runs-on: ubuntu-latest
2525

2626
steps:
2727
- uses: actions/checkout@v2
28-
- name: Build
28+
- name: Unit tests
2929
run: |
30-
cargo build
30+
cargo test
3131
32-
tests:
32+
build:
3333
runs-on: ubuntu-latest
34-
needs: build
34+
needs: [lint, tests]
3535

3636
steps:
3737
- uses: actions/checkout@v2
38-
- name: Unit tests
38+
- name: Check
3939
run: |
40-
cargo test
40+
cargo check
41+
- name: Build
42+
run: |
43+
cargo build

0 commit comments

Comments
 (0)