-
Notifications
You must be signed in to change notification settings - Fork 370
41 lines (39 loc) · 1.04 KB
/
test.yaml
File metadata and controls
41 lines (39 loc) · 1.04 KB
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
name: Run basic tests
on:
workflow_dispatch:
push:
branches:
- 'main'
pull_request:
paths:
- ".github/workflows/build.yaml"
- ".github/workflows/matrix.json"
- "integration-tests/**"
- "backends/**"
- "core/**"
- "router/**"
- "Cargo.lock"
- "rust-toolchain.toml"
- "Dockerfile"
branches:
- 'main'
jobs:
tests:
concurrency:
group: ${{ github.workflow }}-${{ github.job }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
runs-on:
group: aws-highmemory-32-plus-priv
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.7
- name: Compile project
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
run: |
sudo apt-get update && sudo apt-get install protobuf-compiler -y
cargo test --profile=release-debug