-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (30 loc) · 899 Bytes
/
main.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
name: "CI"
on:
push:
branches:
- main
pull_request: {}
jobs:
clippy:
runs-on: ubuntu-latest
container: marcusgrass/pgwm-check:latest
steps:
- uses: actions/checkout@v3
- name: Run clippy on all feature permutations
run: cargo hack clippy -p pgwm-app --feature-powerset -- -D warnings
deny:
runs-on: ubuntu-latest
container: marcusgrass/pgwm-check:latest
steps:
- uses: actions/checkout@v3
- name: Run cargo deny
run: cargo deny --all-features --locked check
test:
runs-on: ubuntu-latest
container: marcusgrass/pgwm-check:latest
steps:
- uses: actions/checkout@v3
- name: Run tests on core with all feature permutations
run: cargo hack test -p pgwm-core --feature-powerset
- name: Run tests on project with default features
run: cargo test --all-features -p pgwm-core