Skip to content

Commit baac858

Browse files
committed
chore: github actions
1 parent 0b8c715 commit baac858

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Proxy Server CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
node-version: [18.x, 20.x, 22.x, 24.x, 25.x]
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Use Node.js ${{ matrix.node-version }}
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
cache: 'npm'
22+
23+
- name: Install dependencies
24+
run: npm install
25+
26+
- name: Run tests
27+
run: npm test -- --ci
28+
29+
- name: Upload test results (optional)
30+
if: failure()
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: jest-results-${{ matrix.node-version }}
34+
path: jest-results.json
35+
if-no-files-found: ignore
36+

0 commit comments

Comments
 (0)