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