Skip to content

Commit 3d65680

Browse files
committed
use generic worfklow for build
Signed-off-by: HARPER Jon <[email protected]>
1 parent 7e37511 commit 3d65680

File tree

1 file changed

+9
-43
lines changed

1 file changed

+9
-43
lines changed

.github/workflows/build.yml

+9-43
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,17 @@
11
name: CI
2+
23
on:
34
push:
45
branches:
56
- 'main'
67
pull_request:
78

89
jobs:
9-
license-headers:
10-
name: Check licenses headers
11-
runs-on: ubuntu-latest
12-
steps:
13-
- name: Checkout sources
14-
uses: actions/checkout@v4
15-
with:
16-
persist-credentials: false
17-
- uses: actions/setup-node@v4
18-
with:
19-
node-version: 22
20-
- name: Check License Header (Check Mode)
21-
uses: apache/skywalking-eyes/[email protected]
22-
with:
23-
config: .github/config/.licenserc.yaml
24-
25-
build:
26-
runs-on: ubuntu-latest
27-
steps:
28-
- name: Checkout sources
29-
uses: actions/checkout@v4
30-
with:
31-
persist-credentials: false
32-
33-
- uses: actions/setup-node@v4
34-
with:
35-
node-version: 22
36-
- name: FixForNodeWarnings
37-
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
38-
39-
- name: Build
40-
run: |
41-
npm ci
42-
npm run licenses-check
43-
npm run lint
44-
npm run test:coverage
45-
npm run build
46-
47-
- name: SonarCloud Scan
48-
uses: SonarSource/sonarqube-scan-action@bfd4e558cda28cda6b5defafb9232d191be8c203 #v4.2.1
49-
env:
50-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
10+
build:
11+
uses: powsybl/github-ci/.github/workflows/build-frontend-lib-generic.yml@852670523f7fb3699d16efcbdd6d7500d5730b2f
12+
with:
13+
eventType: diagram_viewer_updated
14+
licensercPath: .github/config/.licenserc.yaml
15+
secrets:
16+
sonar-token: ${{ secrets.SONAR_TOKEN }}
17+
repo-token: ${{ secrets.REPO_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)