From 68aca252b16b82185232593cb643421ad197db77 Mon Sep 17 00:00:00 2001 From: Yohan Nelson Date: Fri, 20 Sep 2024 11:46:55 +0530 Subject: [PATCH] CI fix (#88) --- .github/workflows/ci.yml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e3cc54..c1f5e9c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,30 +3,31 @@ name: CI on: workflow_dispatch: push: - branches: [ "master" ] - pull_request_target: - branches: [ "master" ] + branches: ["master"] + pull_request: + branches: ["master"] jobs: tests: runs-on: self-hosted - strategy: - matrix: - node-version: [16.x] - steps: - - uses: actions/checkout@v3 + - name: Checkout code + uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.head.sha }} - - name: Check branch - run: git branch - - name: Use Node.js ${{ matrix.node-version }} + + - name: Use Node.js uses: actions/setup-node@v3 with: - node-version: ${{ matrix.node-version }} + node-version: 20 cache: "npm" + - name: Install Dependencies - run: npm install + run: | + npm --version + node --version + npm install + - name: Run Tests - run: npm test + run: npm run test