chore(deps-dev): bump brace-expansion from 1.1.12 to 1.1.18 #436
Workflow file for this run
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: Node.js CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis (SonarCloud) | |
| - name: Use Node.js | |
| uses: actions/setup-node@v7 | |
| with: | |
| cache: npm | |
| node-version: 16 | |
| - run: | | |
| npm ci | |
| npm run build | |
| xvfb-run --auto-servernum npm test | |
| - name: Upload coverage reports | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: coverage-reports | |
| path: | | |
| coverage/chrome/lcov.info | |
| coverage/firefox/lcov.info | |
| sonar: | |
| runs-on: ubuntu-latest | |
| needs: [ci] | |
| if: ${{ github.event.pull_request.head.repo.fork != true && github.actor != 'dependabot[bot]' }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v7 | |
| with: | |
| cache: npm | |
| node-version: 16 | |
| - name: Download coverage reports | |
| uses: actions/download-artifact@v8 | |
| with: | |
| name: coverage-reports | |
| path: coverage | |
| - name: Read package version | |
| id: package-version | |
| uses: martinbeentjes/npm-get-version-action@v1.3.1 | |
| - name: Set version | |
| run: echo -e "\nsonar.projectVersion=${{ steps.package-version.outputs.current-version}}" >> sonar-project.properties | |
| - name: SonarCloud Scan | |
| uses: SonarSource/sonarqube-scan-action@v8 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |