diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d744273..a12fa5c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,25 +1,29 @@ name: Test + on: push: pull_request: jobs: - release: + test: name: Unit tests runs-on: ubuntu-latest + steps: - - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Enable pnpm via Corepack + run: corepack enable + - name: Setup Node.js - uses: actions/setup-node@v2 - with: - node-version: 'lts/*' - - uses: pnpm/action-setup@v2.2.2 + uses: actions/setup-node@v4 with: - version: latest + node-version: 20 + cache: pnpm + - name: Install dependencies - run: pnpm i + run: pnpm install --frozen-lockfile + - name: Run unit tests - run: pnpm run test + run: pnpm test