Set Sentry scope user #122
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publishing | |
on: | |
push: | |
branches: | |
- develop | |
- release/* | |
- hotfix/* | |
tags: | |
- v*.*.* | |
env: | |
REGISTRY: ghcr.io | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
test-type: | |
- unit | |
env: | |
PLAYWRIGHT_BROWSERS_PATH: .playwright | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
check-latest: true | |
cache: npm | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: '21' | |
check-latest: true | |
- name: Cache Playwright browsers | |
uses: actions/cache@v4 | |
if: ${{ matrix.test-type == 'integration' }} | |
with: | |
path: .playwright | |
key: ${{ runner.os }}-playwright-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-playwright- | |
- name: Install dependencies | |
run: npm ci | |
- name: Install Playwright browsers | |
if: ${{ matrix.test-type == 'integration' }} | |
run: npx playwright install --with-deps | |
- name: Generate OpenAPI client | |
run: npm run openapi | |
- name: Run tests | |
run: npm run test:${{ matrix.test-type }} |