Skip to content

Commit 4cc4415

Browse files
committed
Add actions to test features
1 parent a9c53c2 commit 4cc4415

1 file changed

Lines changed: 27 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,16 @@ env:
1010
CARGO_TERM_COLOR: always
1111

1212
jobs:
13-
build:
13+
check_format:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Check format
20+
run: cargo fmt -- --check
21+
22+
build workspace:
1423

1524
runs-on: ubuntu-latest
1625

@@ -21,11 +30,24 @@ jobs:
2130
- name: Run tests
2231
run: cargo test --verbose
2332

24-
check_format:
33+
build lib (all features):
2534

2635
runs-on: ubuntu-latest
2736

2837
steps:
29-
- uses: actions/checkout@v2
30-
- name: Check format
31-
run: cargo fmt -- --check
38+
- uses: actions/checkout@v2
39+
- name: Build
40+
run: cargo build --package splashsurf_lib --all-features --verbose
41+
- name: Run tests
42+
run: cargo test --package splashsurf_lib --all-features --verbose
43+
44+
build lib (no default features):
45+
46+
runs-on: ubuntu-latest
47+
48+
steps:
49+
- uses: actions/checkout@v2
50+
- name: Build
51+
run: cargo build --package splashsurf_lib --no-default-features --verbose
52+
- name: Run tests
53+
run: cargo test --package splashsurf_lib --no-default-features --verbose

0 commit comments

Comments
 (0)