-
Notifications
You must be signed in to change notification settings - Fork 0
92 lines (69 loc) · 2.44 KB
/
Copy pathci.yaml
File metadata and controls
92 lines (69 loc) · 2.44 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
85
86
87
88
89
90
91
92
name: CI
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
baseline:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v7
- name: Test initial publication guards
run: node --test scripts/initial-publish-context.test.mjs scripts/cargo-publish-context.test.mjs
- name: Check whitespace
run: git diff --check "$(git hash-object -t tree /dev/null)" HEAD
- name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version: 20
cache: npm
- name: Install JavaScript development dependencies
run: npm ci
- name: Validate catalog schemas, data, and SVG assets
run: npm run validate
- name: Verify generated Cargo and npm artifacts
run: npm run generate:check
- name: Test catalog security and cross-package equality
run: npm test
- name: Check npm package types
run: npm run typecheck
- name: Verify npm package contents
run: npm pack --dry-run --workspace @stack-sh/theme
- name: Install latest stable Rust toolchain
run: rustup toolchain install stable --profile minimal --component clippy,rustfmt
- name: Check Rust formatting
run: cargo +stable fmt --check
- name: Run Rust tests
run: cargo +stable test --workspace --locked
- name: Run Clippy
run: cargo +stable clippy --workspace --all-targets --locked -- -D warnings
- name: Build Rust documentation
env:
RUSTDOCFLAGS: -D warnings
run: cargo +stable doc --workspace --no-deps --locked
- name: Verify crates.io package
run: cargo +stable publish --dry-run -p stack-theme --locked
- name: Verify repository files
run: |
test -s README.md
test -s AGENTS.md
test -s CONTRACT.md
test -s PROVIDER_PACKS.md
test -s LICENSE
test -s THIRD_PARTY_LICENSES.md
msrv:
name: Minimum supported Rust
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v7
- name: Install Rust 1.85
run: rustup toolchain install 1.85.0 --profile minimal --component clippy
- name: Run tests
run: cargo +1.85.0 test --workspace --locked
- name: Run Clippy
run: cargo +1.85.0 clippy --workspace --all-targets --locked -- -D warnings