Skip to content

Aktualisierte Stories und Gesamtbelastung der Entwickler #17

Aktualisierte Stories und Gesamtbelastung der Entwickler

Aktualisierte Stories und Gesamtbelastung der Entwickler #17

Workflow file for this run

name: Run tests
on:
# push:
# branches:
# - main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Lint code
run: pnpm lint
- name: Check code
run: pnpm check
- name: Run unit tests
run: pnpm test:unit
- name: Get installed Playwright version
id: playwright-version
run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package-lock.json').devDependencies['@playwright/test'].version)")" >> $GITHUB_ENV
- name: Cache playwright binaries
uses: actions/cache@v3
id: playwright-cache
with:
path: |
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}
- name: Install playwright browsers
run: pnpm exec playwright install --with-deps
if: steps.playwright-cache.outputs.cache-hit != 'true'
- name: Run integration tests
run: pnpm test:integration