-
Notifications
You must be signed in to change notification settings - Fork 371
58 lines (49 loc) · 1.64 KB
/
Copy pathcli_tests.yml
File metadata and controls
58 lines (49 loc) · 1.64 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# name: CLI Tests
# on:
# pull_request:
# branches: [main, dev]
# paths:
# - 'helix-cli/**'
# - 'helix-macros/**'
# - 'helix-container/**'
# - 'helix-db/**'
# - 'Cargo.toml'
# - 'Cargo.lock'
# env:
# CARGO_TERM_COLOR: always
# RUST_BACKTRACE: 1
# jobs:
# test:
# name: Test (${{ matrix.os }})
# runs-on: ${{ matrix.os }}
# strategy:
# fail-fast: false
# matrix:
# os: [ubuntu-latest, macos-latest, windows-latest]
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# - name: Setup Rust toolchain
# uses: dtolnay/rust-toolchain@stable
# - name: Cache cargo registry
# uses: actions/cache@v4
# with:
# path: |
# ~/.cargo/registry
# ~/.cargo/git
# target
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
# restore-keys: |
# ${{ runner.os }}-cargo-
# - name: Run helix-cli unit tests
# run: cargo test --release --package helix-cli
# env:
# # Use a unique temp directory for test isolation
# HELIX_CACHE_DIR: ${{ runner.temp }}/helix-test-cache-${{ github.run_id }}
# - name: Run helix-macros tests
# run: cargo test --release --package helix-macros
# # Integration tests that require repo cloning run serially
# - name: Run helix-cli integration tests (ignored tests)
# run: cargo test --release --package helix-cli -- --ignored --test-threads=1
# env:
# HELIX_CACHE_DIR: ${{ runner.temp }}/helix-test-cache-ignored-${{ github.run_id }}