This repository has been archived by the owner on Jan 2, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 574
72 lines (59 loc) · 1.8 KB
/
server-test.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Server Unit Tests
on:
pull_request:
branches: [main]
paths:
- "server/**"
- ".github/workflows/server**"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
clippy-test:
runs-on: nixos
steps:
- name: Checkout code
uses: nschloe/action-cached-lfs-checkout@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Git LFS
run: git lfs install && git lfs pull
- name: Rustfmt
run: nix develop -c bash -c 'cargo --locked fmt -p bleep -- --check'
- name: Clippy
run: nix develop -c bash -c 'cargo --locked clippy -p bleep --features=ee'
- name: Tests
run: nix develop -c bash -c 'cargo --locked test -p bleep --release'
- name: Sccache stats
run: nix develop -c bash -c 'sccache --show-stats'
# benchmark:
# runs-on: [self-hosted, benchmark]
# steps:
# - uses: actions/checkout@v3
# with:
# clean: false
# lfs: true
# - name: Setup Rust toolchain
# uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: stable
# override: true
# - uses: boa-dev/criterion-compare-action@v3.2.4
# env:
# BLOOP_LOG: bleep=debug
# with:
# cwd: ./server
# benchName: "indexes"
# branchName: ${{ github.base_ref }}
# token: ${{ secrets.GITHUB_TOKEN }}
# - uses: boa-dev/criterion-compare-action@v3.2.4
# env:
# BLOOP_LOG: bleep=debug
# with:
# cwd: ./server
# benchName: "queries"
# branchName: ${{ github.base_ref }}
# token: ${{ secrets.GITHUB_TOKEN }}