-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (36 loc) · 1.19 KB
/
ci.yml
File metadata and controls
37 lines (36 loc) · 1.19 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
name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: --max-old-space-size=4096
ROLLUP_DISABLE_NATIVE: '1'
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix['node-version'] }}
cache: npm
- run: npm ci --no-audit --no-fund
- name: Ensure Rollup native binary is present (linux-x64)
run: npm i --no-save @rollup/rollup-linux-x64-gnu || true
- run: npm run build
- run: npm install --prefix packages/otel-plugin --no-audit --no-fund
- run: npm install --no-save --prefix packages/otel-plugin $GITHUB_WORKSPACE
- run: npm run build --prefix packages/otel-plugin
- run: npm run build:core
- run: npm run build --prefix packages/rdcp-client
- run: npm install --prefix packages/rdcp-demo-app --no-audit --no-fund
- run: npm test
- run: npm run lint:ci
- run: npm run lint:ci --prefix packages/otel-plugin
- run: npm run type-check --prefix packages/otel-plugin