Repository navigation
79 lines (74 loc) · 2.47 KB
/
Copy pathcheck.yml
File metadata and controls
79 lines (74 loc) · 2.47 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
name: Check
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
workflows:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v7
- name: Validate workflow expressions and syntax
run: >-
docker run --rm --volume "$PWD:/repo:ro" --workdir /repo
rhysd/actionlint:1.7.7@sha256:887a259a5a534f3c4f36cb02dca341673c6089431057242cdc931e9f133147e9
-shellcheck= .github/workflows/check.yml
minimum-runtime:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version-file: .node-version
- uses: pnpm/setup@v3
with:
version: 12.3.4
- run: pnpm install --frozen-lockfile
- run: pnpm build
- name: Stage unchanged package bytes and standalone runtime check
env:
COREPACK_HOME: ${{ runner.temp }}/consumer-corepack
run: |
mkdir -p .cache/runtime-packages
for package in oxlint-plugin rule-catalog oxlint-config; do
pnpm --dir "packages/$package" pack --pack-destination "$PWD/.cache/runtime-packages"
done
pnpm exec esbuild scripts/packed-runtime.ts --bundle --platform=node --format=esm --target=node22 --outfile=.cache/packed-runtime.mjs
pnpm --package=corepack@0.34.0 dlx corepack pnpm@10.33.4 --version
- uses: actions/setup-node@v7
with:
node-version: 22.12.0
- name: Test tarballs outside the development workspace
env:
AG_PNPM_CLI: ${{ runner.temp }}/consumer-corepack/v1/pnpm/10.33.4/bin/pnpm.cjs
run: node .cache/packed-runtime.mjs .cache/runtime-packages
check:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
nodejs: ["lts/*", "lts/-1", "*"]
pnpm: ["12.3.4"]
runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: ${{ matrix.nodejs }}
- uses: pnpm/setup@v3
with:
version: ${{ matrix.pnpm }}
- run: pnpm install --frozen-lockfile
- run: pnpm run check
- name: Require deterministic generated files
run: git diff --exit-code
- uses: actions/upload-artifact@v7
if: always()
with:
name: coverage-${{ matrix.os }}
path: coverage/