Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
rsdy committed Feb 16, 2023
1 parent a8b3931 commit a10d799
Showing 1 changed file with 12 additions and 17 deletions.
29 changes: 12 additions & 17 deletions .github/workflows/server-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,18 @@ jobs:
- name: Dummy Qdrant binary
run: touch apps/desktop/src-tauri/bin/qdrant-x86_64-unknown-linux-gnu

- name: Restore cache
run: cp -r /sccache/cargo_target target || true

- name: Rustfmt
run: nix develop --no-update-lock-file -c bash -c 'cargo --locked fmt -p bleep -- --check'

- name: Clippy
run: nix develop --no-update-lock-file -c bash -c 'cargo --locked clippy -p bleep --all-features'

- name: Tests
run: nix develop --no-update-lock-file -c bash -c 'cargo --locked test -p bleep --all-features --release'

- name: Sccache stats
run: sccache --show-stats

- name: Store cache
run: rm -rf /sccache/cargo_target && cp -r target /sccache/cargo_target
- name: Alles zusammen
run: |
cp -r /sccache/cargo_target target || true
nix develop --no-update-lock-file -c bash <<EOF
cargo --locked fmt -p bleep -- --check
cargo --locked clippy -p bleep --all-features
cargo --locked test -p bleep --all-features --release
sccache --show-stats
EOF
rm -rf /sccache/cargo_target && cp -r target /sccache/cargo_target
# benchmark:
# runs-on: [self-hosted, benchmark]
Expand Down

0 comments on commit a10d799

Please sign in to comment.