Skip to content

Merge pull request #2 from RonaldTreur/fix/selectWinnersFromAboveQuot… #5

Merge pull request #2 from RonaldTreur/fix/selectWinnersFromAboveQuot…

Merge pull request #2 from RonaldTreur/fix/selectWinnersFromAboveQuot… #5

Workflow file for this run

name: Run unit tests
on:
push:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
node-version: 22.x
- name: Install pnpm
uses: pnpm/action-setup@v3
id: pnpm-install
with:
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
pnpm-store-
- name: Install dependencies
shell: bash
run: pnpm install --frozen-lockfile
- name: Run unit tests
shell: bash
run: pnpm run test