diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 69f89ec..c1f5e9c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,25 +4,23 @@ on: workflow_dispatch: push: branches: ["master"] - pull_request_target: + pull_request: branches: ["master"] jobs: tests: runs-on: self-hosted - strategy: - matrix: - node-version: [20.x] # Updated to a more recent LTS version - steps: - name: Checkout code uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} - - 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