chore(deps): update dependency wait-on to v8 #976
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: pr | |
on: | |
pull_request: | |
branches: | |
- main | |
types: [opened, synchronize, reopened] | |
workflow_dispatch: | |
inputs: | |
skip_coveralls: | |
description: "Skip coveralls" | |
type: boolean | |
default: false | |
skip_sonarcloud: | |
description: "Skip sonarcloud" | |
type: boolean | |
default: false | |
skip_tests: | |
description: "Skip tests" | |
type: boolean | |
default: false | |
jobs: | |
pr-build: | |
runs-on: ubuntu-latest | |
concurrency: ci-${{ github.ref }} | |
environment: | |
name: pr | |
steps: | |
- id: checkout | |
name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
persist-credentials: false | |
token: ${{ secrets.GITHUB_TOKEN }} | |
fetch-depth: 0 | |
- id: nodejs | |
name: Use Node.js | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 | |
with: | |
node-version: 22.x | |
cache: "npm" | |
- id: build | |
name: Build | |
run: npm run ci:build | |
- id: test | |
if: ${{ !github.event.inputs.skip_tests }} | |
name: Test | |
run: npm run ci:test | |
- id: docs | |
name: Build docs | |
run: npm run ci:docs | |
- id: coveralls | |
if: ${{ !github.event.inputs.skip_coveralls }} | |
name: Coveralls | |
uses: coverallsapp/github-action@cfd0633edbd2411b532b808ba7a8b5e04f76d2c8 # v2 | |
- id: sonarcloud | |
if: ${{ env.SONAR_TOKEN && !github.event.inputs.skip_sonarcloud }} | |
name: SonarCloud Scan | |
uses: sonarsource/sonarcloud-github-action@e44258b109568baa0df60ed515909fc6c72cba92 # v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |