-
Notifications
You must be signed in to change notification settings - Fork 0
126 lines (100 loc) · 3.91 KB
/
Copy pathci.yml
File metadata and controls
126 lines (100 loc) · 3.91 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# agent-pmo:b636503
name: CI
on:
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
name: CI
# Dependabot PRs are swept into `dependabot-upgrades` and never merge into
# main directly, so the heavy matrix would only burn minutes on a bump we
# discard. CI runs once, on the consolidation PR. (SWR-SEC-DEPENDABOT-STAGING)
if: github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 # stable
with:
toolchain: stable
components: rustfmt, clippy, llvm-tools-preview
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '20'
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
- uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
with:
dotnet-version: '9.x'
- uses: dart-lang/setup-dart@v1
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@d438492cf8a250514fa2d34b30bc3c0dc37c65ff # v2
with:
tool: cargo-llvm-cov
- name: Lint
run: make lint
- name: Deslop duplication gate
env:
DESLOP_VERSION: "0.5.1"
run: |
curl -sSfL "https://github.com/Nimblesite/Deslop/releases/download/v${DESLOP_VERSION}/deslop-${DESLOP_VERSION}-linux-x64.tar.gz" | tar -xz
# $GITHUB_PATH only takes effect in *later* steps, so add the binary dir to
# PATH for this step explicitly before invoking the gate in the same step.
export PATH="$PWD/deslop-${DESLOP_VERSION}-linux-x64:$PATH"
deslop .
- name: Test
run: make test
- name: Upload coverage
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: always()
with:
name: coverage-report
path: |
lcov.info
target/llvm-cov/
retention-days: 7
- name: Build
run: make build
- name: Upload build artifacts
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: build-artifacts
path: |
target/release/
retention-days: 7
ts-tests:
name: TypeScript tests (${{ matrix.os }})
# Skip Dependabot bumps — swept into `dependabot-upgrades`, tested once on
# the consolidation PR. (SWR-SEC-DEPENDABOT-STAGING)
if: github.actor != 'dependabot[bot]'
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '20'
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build shipwright-core
run: pnpm --filter @nimblesite/shipwright-core build
- name: Test shipwright-core
run: pnpm --filter @nimblesite/shipwright-core test
- name: Build shipwright-vscode
run: pnpm --filter @nimblesite/shipwright-vscode build
- name: Test shipwright-vscode
run: pnpm --filter @nimblesite/shipwright-vscode test
- name: Test shipwright-mcp
run: pnpm --filter @nimblesite/shipwright-mcp test
- name: Install validate-manifest deps
run: npm install --no-audit --no-fund
working-directory: tools/validate-manifest
- name: Test fixtures
run: node --test tests/fixtures.test.mjs