-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (48 loc) · 1.28 KB
/
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
name: test
on:
pull_request:
push:
jobs:
rust_doc_test:
strategy:
matrix:
os:
- ubuntu-latest
- freebsd-latest # self-hosted
rust:
- stable
- beta
- nightly
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- id: install_rust
uses: ./.github/actions/setup-rust
with:
channel: ${{ matrix.rust }}
- name: Install dependencies
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt update
sudo apt install -y fuse3 libfuse3-dev
- name: Install dependencies
if: startsWith(matrix.os, 'freebsd')
run: |
sudo pkg install -y pkgconf fusefs-libs3
- uses: actions/cache@v4
with:
path: target
key: ${{ matrix.os }}-rust-${{ steps.install_rust.outputs.version }}-${{ hashFiles('**/Cargo.lock') }}
- name: Run test
run: cargo test --locked --release
env:
RUST_BACKTRACE: 1
- name: Install cli
run: |
cargo install -f portable-network-archive
cargo install --locked --path .
- name: Run test cli
shell: bash
run: |
chmod +x scripts/tests/run.sh
./scripts/tests/run.sh