-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (55 loc) · 1.86 KB
/
Copy pathsource-map-validation.yml
File metadata and controls
66 lines (55 loc) · 1.86 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
name: source-map validation
on:
workflow_dispatch:
pull_request:
paths:
- 'src/**'
- 'etc/**'
- 'package.json'
- 'scripts/test-package.mjs'
# lint-md core moves on its own. The weekly run catches breakage caused
# by changes inside core, not by parser changes.
schedule:
- cron: '0 3 * * 1'
permissions:
contents: read
jobs:
Core-compat:
runs-on: ubuntu-latest
steps:
- name: Checkout parser
uses: actions/checkout@v6.0.2
with:
persist-credentials: false
- name: Setup Node.js environment
uses: actions/setup-node@v6.3.0
with:
node-version: '22'
- name: Setup PNPM
uses: pnpm/action-setup@v6.0.8
with:
version: 11.27.1
- name: Install modules and build parser
run: pnpm install --frozen-lockfile && pnpm run build
# The benchmark smoke runs on every Node 22 PR job. This workflow is for
# the heavier downstream compatibility validation only.
- name: Pack parser artifact
run: pnpm pack --pack-destination "$RUNNER_TEMP"
- name: Checkout lint-md core
uses: actions/checkout@v6.0.2
with:
repository: lint-md/lint-md
path: core
persist-credentials: false
- name: Install core dependencies
working-directory: core
# lint-md does not commit package-lock.json; keep this aligned with its
# own workflow rather than using npm ci.
run: npm install
# Install the packed candidate rather than linking this checkout, so the
# downstream suite also validates the package's published file set.
- name: Test core against packed parser
working-directory: core
run: |
npm install --no-save --package-lock=false "$RUNNER_TEMP"/lint-md-parser-*.tgz
npm test -- --runInBand