From f984efe6a0a1a5166843ba60c9d3d6216e42281b Mon Sep 17 00:00:00 2001 From: Janne Antikainen Date: Fri, 3 Jul 2026 12:03:19 +0300 Subject: [PATCH] run tests in ci --- .github/workflows/pr-checks.yml | 49 +++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/pr-checks.yml diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml new file mode 100644 index 00000000..f6323420 --- /dev/null +++ b/.github/workflows/pr-checks.yml @@ -0,0 +1,49 @@ +name: PR checks + +on: + pull_request: + branches: + - next + +concurrency: + group: pr-checks-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + verify: + runs-on: ubuntu-latest + timeout-minutes: 5 + + strategy: + matrix: + node-version: + - 25.9.0 + + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Setup Node ${{ matrix.node-version }} + uses: actions/setup-node@v5 + with: + node-version: ${{ matrix.node-version }} + cache: npm + cache-dependency-path: package-lock.json + + - name: Install app dependencies + run: npm ci + + - name: Lint TypeScript + run: npm run lint-ts-test + + - name: Lint SCSS + run: npm run lint-scss-test + + - name: Unit tests + run: npm test -- --ci + + - name: Production build + run: npm run build