diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2950404..13acd89 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,27 +2,37 @@ name: CI on: push: - branches: - - master + branches: [master] + pull_request: - branches: - - master + branches: [master] + + workflow_dispatch: jobs: test: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + persist-credentials: false + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 - - name: Set up Node.js - uses: actions/setup-node@v2 + - name: Setup Node.js + uses: actions/setup-node@v4 with: - node-version: "14" + node-version-file: ".nvmrc" + cache: pnpm - - name: Install dependencies - run: npm install + - name: Install + run: pnpm install --frozen-lockfile - name: Run tests - run: npm test + run: pnpm test