-
Notifications
You must be signed in to change notification settings - Fork 142
73 lines (71 loc) · 2.07 KB
/
pr.yaml
File metadata and controls
73 lines (71 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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@49933ea5288caeca8642d1e84afbd3f7d6820020 # 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@aa494459d7c39c106cc77b166de8b4250a32bb97 # v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}