Header breaking changes nunjucks params #1314
This file contains 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: Pull request | |
on: pull_request | |
jobs: | |
sonar_analysis: | |
name: Sonar analysis | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Sonar analysis | |
uses: SonarSource/sonarqube-scan-action@v4 | |
with: | |
projectBaseDir: . | |
env: | |
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} | |
linting: | |
name: Code style checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Run linting | |
run: npm run lint | |
tests: | |
name: Javascript unit tests | |
# Ubuntu version is currently pinned to 22 | |
# as later versions break tests relying on Chromium | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Run tests | |
run: npm test --ignore-scripts | |
ui_tests: | |
name: Visual regression tests | |
# Ubuntu version is currently pinned to 22 | |
# as later versions break tests relying on Chromium | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Run backstop | |
run: npm run test:visual | |
- name: Save backstop report | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Backstop report | |
path: tests/backstop/ | |
if-no-files-found: ignore |