mirror of
https://github.com/acamarata/tsconfig.git
synced 2026-06-30 19:04:29 +00:00
64 lines
1.8 KiB
YAML
64 lines
1.8 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
name: Validate JSON (Node ${{ matrix.node-version }})
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [20, 22, 24]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Enable corepack
|
|
run: corepack enable
|
|
|
|
- name: Setup Node ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: 'pnpm'
|
|
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
|
|
- name: Validate JSON configs
|
|
run: pnpm test
|
|
|
|
pack-check:
|
|
name: Pack check
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Enable corepack
|
|
run: corepack enable
|
|
|
|
- name: Setup Node 24
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 24
|
|
cache: 'pnpm'
|
|
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
|
|
- name: Pack
|
|
run: npm pack
|
|
|
|
- name: Verify pack contents
|
|
run: |
|
|
tar -tf *.tgz | sort
|
|
tar -tf *.tgz | grep -q "package/tsconfig.base.json" || (echo "MISSING: tsconfig.base.json" && exit 1)
|
|
tar -tf *.tgz | grep -q "package/tsconfig.library.json" || (echo "MISSING: tsconfig.library.json" && exit 1)
|
|
tar -tf *.tgz | grep -q "package/tsconfig.node.json" || (echo "MISSING: tsconfig.node.json" && exit 1)
|
|
tar -tf *.tgz | grep -q "package/tsconfig.react.json" || (echo "MISSING: tsconfig.react.json" && exit 1)
|
|
tar -tf *.tgz | grep -q "package/README.md" || (echo "MISSING: README.md" && exit 1)
|
|
tar -tf *.tgz | grep -q "package/LICENSE" || (echo "MISSING: LICENSE" && exit 1)
|
|
echo "Pack check passed"
|