Skip to content

chore(deps): update devdependencies (non-major) (minor) #944

chore(deps): update devdependencies (non-major) (minor)

chore(deps): update devdependencies (non-major) (minor) #944

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
merge_group:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test Unit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
name: Install pnpm
with:
version: 10
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
cache: 'pnpm'
cache-dependency-path: 'pnpm-lock.yaml'
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
env:
VITE_API_HOST: http://localhost:4000
VITE_CLIENT_HOST: http://client.mock.com
# we need the build step before in order to generate the paraglide runtime files
- name: Type-check
run: pnpm check
- name: Get Latest playwright version
run: echo "PLAYWRIGHT_VERSION=$(pnpm show playwright version)" >> $GITHUB_ENV
- name: Cache playwright binaries
uses: actions/cache@v4
id: playwright-cache
with:
path: |
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}
- name: Install playwright with deps
run: pnpm exec playwright install --with-deps
- name: Unit tests
run: pnpm test:unit
- name: Component tests
run: pnpm test:component