From 97592312d2c8406a6eaee772e108a86807efd090 Mon Sep 17 00:00:00 2001 From: Raymond Zhao <7199958+rzhao271@users.noreply.github.com> Date: Wed, 27 Aug 2025 10:03:52 -0700 Subject: [PATCH] chore: create GitHub Actions workflow --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ azure-pipelines.yml | 15 ++++++++++----- 2 files changed, 42 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..a83504641 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: CI + +on: + pull_request: + +jobs: + build-test: + name: Build & Test (${{ matrix.os }}) + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-22.04, macos-14, windows-2022] + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + persist-credentials: false + + - name: Use Node.js 22.x + uses: actions/setup-node@v4 + with: + node-version: '22.x' + + - name: Install dependencies and build + run: npm ci + + - name: Test + run: npm test + + - name: Lint + run: npm run lint diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 26685b192..6f68f2c9e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -3,6 +3,13 @@ # Add steps that analyze code, save build artifacts, deploy, and more: # https://docs.microsoft.com/azure/devops/pipelines/languages/javascript +trigger: + branches: + include: + - main + +pr: none + resources: repositories: - repository: 1esPipelines @@ -27,7 +34,7 @@ extends: steps: - task: NodeTool@0 inputs: - versionSpec: 20.x + versionSpec: 22.x displayName: 'Install Node.js' - script: npm ci displayName: 'Install dependencies and build' @@ -44,10 +51,8 @@ extends: steps: - task: NodeTool@0 inputs: - versionSpec: 20.x + versionSpec: 22.x displayName: 'Install Node.js' - - script: python3 -m pip install setuptools - displayName: Install setuptools (macOS) - script: npm ci displayName: 'Install dependencies and build' - script: npm test @@ -62,7 +67,7 @@ extends: steps: - task: NodeTool@0 inputs: - versionSpec: 20.x + versionSpec: 22.x displayName: 'Install Node.js' - script: npm ci displayName: 'Install dependencies and build'