Skip to content

Test Web

Test Web #66

Workflow file for this run

name: Test Web
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
push:
branches: ["[0-9]+.[0-9]+.x"]
paths: [web/**]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: "9.6.0"
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
cwd: web
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm
- name: Test & Lint
run: pnpm test
working-directory: web
- name: Analyze with sonarqube
uses: sonarsource/sonarqube-scan-action@master
if: ${{ github.event_name != 'pull_request' }}
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
with:
projectBaseDir: web