-
Notifications
You must be signed in to change notification settings - Fork 6
53 lines (41 loc) · 1.28 KB
/
crate.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Crate
concurrency:
group: crate-${{ github.head_ref }}
cancel-in-progress: true
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Super-Linter
uses: github/super-linter@v4
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main
VALIDATE_RUST_2018: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/install-nix-action@v16
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Remove non-nix binary
run: rm -rf ~/.cargo/bin
- name: Clippy sewup
run: nix develop -c cargo clippy -p sewup
env:
RUST_BACKTRACE: 1
- name: Default feature test
run: nix develop -c cargo test -p sewup --features=default
- name: RDB feature test
run: nix develop -c cargo test -p sewup --features=rdb --no-default-features
- name: Token feature test
run: nix develop -c cargo test -p sewup --features=token --no-default-features
- name: KV feature test
run: nix develop -c cargo test -p sewup --features=kv --no-default-features