-
Notifications
You must be signed in to change notification settings - Fork 1
82 lines (69 loc) · 1.77 KB
/
Copy pathtest.yml
File metadata and controls
82 lines (69 loc) · 1.77 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
80
81
82
name: Test
permissions:
contents: read
on:
push:
branches:
- main
paths:
- 'src/**'
- 'test/**'
- 'package*.json'
- 'tsconfig.json'
- '.github/workflows/test.yml'
pull_request:
branches:
- main
paths:
- 'src/**'
- 'test/**'
- 'package*.json'
- 'tsconfig.json'
- '.github/workflows/test.yml'
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22, 24, 26]
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install XRootD client
run: |
sudo apt-get update
sudo apt-get install -y xrootd-client
- name: Verify XRootD installation
run: |
which xrdfs
xrdfs --version
- name: Install dependencies
run: npm ci
- name: Build project
run: npm run build
- name: Run integration tests with coverage
env:
XROOTD_SERVER: root://dtn-eic.jlab.org
XROOTD_BASE_DIR: /volatile/eic/EPIC
run: npm run test:coverage
timeout-minutes: 10
- name: Generate test summary
if: always()
env:
XROOTD_SERVER: root://dtn-eic.jlab.org
XROOTD_BASE_DIR: /volatile/eic/EPIC
run: node scripts/test-summary.js
- name: Upload coverage reports
if: always()
uses: actions/upload-artifact@v7
with:
name: coverage-report-node${{ matrix.node-version }}
path: coverage/
retention-days: 30