Skip to content

[Snyk] Security upgrade parse-duration from 1.1.2 to 2.1.3 #1308

[Snyk] Security upgrade parse-duration from 1.1.2 to 2.1.3

[Snyk] Security upgrade parse-duration from 1.1.2 to 2.1.3 #1308

Workflow file for this run

name: pr
on:
pull_request:
branches:
- main
types: [opened, synchronize, reopened]
workflow_dispatch:
inputs:
skip_build_docs:
description: "Skip build docs"
type: boolean
default: false
skip_build_lib:
description: "Skip build lib"
type: boolean
default: false
skip_qa_coveralls:
description: "Skip QA Coveralls"
type: boolean
default: false
skip_qa_sonarqube:
description: "Skip QA SonarQube"
type: boolean
default: false
skip_test:
description: "Skip test"
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: setup-nodejs
name: Setup Node.js
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
with:
node-version: 22.x
cache: "npm"
- id: build-lib
if: ${{ !github.event.inputs.skip_build_lib }}
name: Build lib
run: npm run ci:build
- id: test
if: ${{ !github.event.inputs.skip_test }}
name: Test
run: npm run ci:test
- id: build-docs
if: ${{ !github.event.inputs.skip_build_docs }}
name: Build docs
run: npm run ci:docs
- id: qa-coveralls
if: ${{ !github.event.inputs.skip_qa_coveralls }}
name: QA Coveralls
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2
- id: qa-sonarqube
if: ${{ !github.event.inputs.skip_qa_sonarqube }}
name: QA SonarQube
uses: SonarSource/sonarqube-scan-action@0303d6b62e310685c0e34d0b9cde218036885c4d # v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}