diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..c10d20a --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,28 @@ +name: Build and Test + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: "22" + + - name: Install dependencies + run: npm install + + - name: Run tests + run: npm test diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index 5389bf9..0000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,21 +0,0 @@ -# Node.js -# Build a general Node.js project with npm. -# Add steps that analyze code, save build artifacts, deploy, and more: -# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript - -trigger: -- master - -pool: - vmImage: 'Ubuntu-latest' - -steps: -- task: NodeTool@0 - inputs: - versionSpec: '16.x' - displayName: 'Install Node.js' - -- script: | - npm install - npm test - displayName: 'npm install and test'