-
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (35 loc) · 923 Bytes
/
test.yml
File metadata and controls
35 lines (35 loc) · 923 Bytes
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
name: test
on:
pull_request:
push:
jobs:
rust_doc_test:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: git autocrlf false
if: startsWith(matrix.os, 'windows')
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v6
- uses: ./.github/actions/cache-cargo
with:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: ./.github/actions/setup-rust
- name: Cache build
id: cache-build
uses: actions/cache@v5
with:
path: |
target
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.toml') }}
- name: run test
run: cargo test --locked --release
env:
RUST_BACKTRACE: 1