-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (56 loc) · 1.51 KB
/
Copy pathruntime-ci.yml
File metadata and controls
59 lines (56 loc) · 1.51 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
name: Runtime CI
on:
pull_request:
paths:
- 'package.json'
- 'package-lock.json'
- 'CHANGELOG.md'
- 'LICENSE'
- 'tsconfig*.json'
- 'src/**'
- 'test/**'
- 'scripts/**'
- '.github/workflows/runtime-ci.yml'
push:
branches:
- main
paths:
- 'package.json'
- 'package-lock.json'
- 'CHANGELOG.md'
- 'LICENSE'
- 'tsconfig*.json'
- 'src/**'
- 'test/**'
- 'scripts/**'
- '.github/workflows/runtime-ci.yml'
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node:
- 22.23.2
- 24.18.0
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci --ignore-scripts --no-audit --no-fund
- run: npm test
- run: npm run pack:check
- name: Create and verify the exact unpublished package candidate
shell: bash
env:
LOREBIT_TARBALL: ${{ runner.temp }}/lorebit-pack/devcodex-lorebit-0.0.0-development.tgz
LOREBIT_CONSUMER: ${{ runner.temp }}/lorebit-consumer
run: |
mkdir -p "$(dirname "$LOREBIT_TARBALL")"
npm pack --pack-destination "$(dirname "$LOREBIT_TARBALL")"
npm run pack:check -- --tarball "$LOREBIT_TARBALL"
node scripts/isolated-consumer-smoke.mjs --tarball "$LOREBIT_TARBALL" --consumer "$LOREBIT_CONSUMER"