This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 77
99 lines (74 loc) · 2.33 KB
/
checks.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
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: Checks
on:
workflow_dispatch:
pull_request:
jobs:
language-server:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
name: Language Server ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Tests (default features)
run: cargo test --no-fail-fast
- name: Clippy (default features)
run: cargo clippy --all-targets -- -Dwarnings
- name: Tests (no default features)
run: cargo test --no-fail-fast --no-default-features
- name: Clippy (no default features)
run: cargo clippy --all-targets --no-default-features -- -Dwarnings
- name: Tests (native-tls)
run: cargo test --no-fail-fast --no-default-features -F remote-packages,fontconfig,native-tls
- name: Clippy (native-tls)
run: cargo clippy --all-targets --no-default-features -F remote-packages,fontconfig,native-tls -- -Dwarnings
- name: Formatting
run: cargo fmt --all --check
cargo-deny:
name: Cargo Deny
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: EmbarkStudios/cargo-deny-action@v1
vs-code-extension:
name: VS Code Extension
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./editors/vscode
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install
- name: Compilation
run: npm run compile
- name: Type Checking
run: npm run check
- name: Tests
run: npm run test
- name: Linting and Formatting
run: |
npm run lint
npm run format-check
- name: Packaging
# raises an error with packaging issues, eg. `@types/vscode` out of sync
# with `engines.vscode`
run: npx vsce ls
lapce-extension:
name: Lapce Extension
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-wasi
- uses: Swatinem/rust-cache@v2
- uses: davidB/[email protected]
- name: Check
run: cargo make lapce-extension-check-flow