-
Notifications
You must be signed in to change notification settings - Fork 7
43 lines (39 loc) · 940 Bytes
/
ci.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
name: ci
on:
push:
branches: [ "main", "wip" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
RUST_LOG: typos_cli,typos_lsp
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- run: cargo test
env:
RUST_LOG: debug,globset=warn
- run: cargo fmt --all -- --check
- run: cargo clippy --all-targets
- run: cargo build
- run: npm ci
- run: npm run lint
# vscode requires an X Server
- name: npm test
run: xvfb-run npm test
# ensure package can be built when package.json changes
- name: npx vsce package
run: npx vsce package
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- run: cargo test
env:
RUST_LOG: debug,globset=warn
RUST_BACKTRACE: 1