chore(deps): update sonarsource/sonarqube-scan-action action to v6 #2308
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
# SPDX-FileCopyrightText: 2024 PNED G.I.E. | |
# SPDX-FileContributor: Stichting Health-RI | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
name: Run Tests | |
on: push | |
jobs: | |
test-frontend: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install | |
run: | | |
npm install | |
- name: Run Unit Test | |
run: | | |
npm run test | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Run Playwright E2E tests | |
run: npx playwright test | |
- name: Upload Playwright report | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: playwright-report | |
path: playwright-report | |
retention-days: 7 | |
- name: Lint | |
run: | | |
npm run lint | |
- name: Prettier | |
run: | | |
npm run format | |
- name: Type check | |
run: | | |
npm run type-check | |
- name: REUSE Compliance Check | |
uses: fsfe/reuse-action@v5 | |
- name: SonarQube Scan | |
uses: SonarSource/sonarqube-scan-action@v6 | |
env: | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
SONAR_HOST_URL: https://sonarcloud.io |