Skip to content

Commit 24b53bb

Browse files
authored
chore: create GitHub Actions workflow (#796)
1 parent 7516a26 commit 24b53bb

File tree

2 files changed

+42
-5
lines changed

2 files changed

+42
-5
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
build-test:
8+
name: Build & Test (${{ matrix.os }})
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
os: [ubuntu-22.04, macos-14, windows-2022]
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
persist-credentials: false
19+
20+
- name: Use Node.js 22.x
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '22.x'
24+
25+
- name: Install dependencies and build
26+
run: npm ci
27+
28+
- name: Test
29+
run: npm test
30+
31+
- name: Lint
32+
run: npm run lint

azure-pipelines.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
# Add steps that analyze code, save build artifacts, deploy, and more:
44
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
55

6+
trigger:
7+
branches:
8+
include:
9+
- main
10+
11+
pr: none
12+
613
resources:
714
repositories:
815
- repository: 1esPipelines
@@ -27,7 +34,7 @@ extends:
2734
steps:
2835
- task: NodeTool@0
2936
inputs:
30-
versionSpec: 20.x
37+
versionSpec: 22.x
3138
displayName: 'Install Node.js'
3239
- script: npm ci
3340
displayName: 'Install dependencies and build'
@@ -44,10 +51,8 @@ extends:
4451
steps:
4552
- task: NodeTool@0
4653
inputs:
47-
versionSpec: 20.x
54+
versionSpec: 22.x
4855
displayName: 'Install Node.js'
49-
- script: python3 -m pip install setuptools
50-
displayName: Install setuptools (macOS)
5156
- script: npm ci
5257
displayName: 'Install dependencies and build'
5358
- script: npm test
@@ -62,7 +67,7 @@ extends:
6267
steps:
6368
- task: NodeTool@0
6469
inputs:
65-
versionSpec: 20.x
70+
versionSpec: 22.x
6671
displayName: 'Install Node.js'
6772
- script: npm ci
6873
displayName: 'Install dependencies and build'

0 commit comments

Comments
 (0)