Repository navigation
77 lines (64 loc) · 1.97 KB
/
Copy pathtest.yaml
File metadata and controls
77 lines (64 loc) · 1.97 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Check and Test
on:
pull_request:
branches: [ master ]
workflow_call:
jobs:
check-rust:
name: Format and Clippy Path Server and Zed Extension
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Install cargo-audit
uses: taiki-e/install-action@cargo-audit
- name: Check for Path Server
run: |
cargo fmt --all -- --check
cargo clippy --all-features -- -D warnings
cargo audit --deny warnings
- name: Check for Zed Extension
working-directory: ./extensions/zed
run: |
cargo fmt --all -- --check
cargo clippy --all-features -- -D warnings
cargo audit --deny warnings
check-typescript:
name: Check VSCode Extension
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "24"
- name: Install dependencies
working-directory: ./extensions/vscode
run: npm install
- name: Check types for VS Code Extension
working-directory: ./extensions/vscode
run: npm run check-types
- name: Lint VS Code Extension
working-directory: ./extensions/vscode
run: npm run lint
# Test Path Server on 3 platforms
test-path-server:
name: Test Path Server on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Run tests in debug mode
run: cargo test --all-features
- name: Run tests in release mode
run: cargo test --release --all-features