Update current node version to 20.x lts #593
Workflow file for this run
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: | |
build: | |
name: Pull request | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org/ | |
- name: Install dependencies | |
run: npm install | |
- name: Sonar analysis | |
uses: sonarsource/sonarcloud-github-action@master | |
with: | |
projectBaseDir: . | |
env: | |
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} | |
- name: Run linting | |
run: npm run lint | |
- name: Run tests | |
run: npm test | |
- name: Run backstop | |
run: npm run backstop:ci |