Repository navigation
84 lines (76 loc) · 2.19 KB
/
Copy pathci.yml
File metadata and controls
84 lines (76 loc) · 2.19 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
78
79
80
81
82
83
84
name: CI
on:
push:
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
repository:
name: Repository checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- uses: actions/setup-node@v4
with:
node-version-file: .node-version
- run: bash scripts/check-shell.sh
- run: node --test scripts/package-metadata.test.mjs
- run: bash scripts/check-completions.sh
check:
name: Check on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- run: cargo fmt --check
- run: cargo test --locked
- run: cargo clippy --locked --all-targets -- -D warnings
- uses: actions/setup-node@v4
with:
node-version: 24
- run: npm test --prefix packages/npm
msrv:
name: Rust 1.85 compatibility
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
# Keep the action updated independently of the minimum Rust version.
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.85.0
- run: cargo test --locked
website:
name: Website checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
cache-dependency-path: site/package-lock.json
- run: npm ci
working-directory: site
- name: Check generated installer is in sync
run: |
npm run sync-installer
git -C .. diff --exit-code -- site/app/yo-setup/installer.generated.ts
working-directory: site
- run: npm run lint
working-directory: site
- run: ./node_modules/.bin/tsc --noEmit --incremental false
working-directory: site
- run: npm run build
working-directory: site
env:
NEXT_TELEMETRY_DISABLED: 1