Skip to content

Commit 4264999

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

File tree

1 file changed

+9
-41
lines changed

1 file changed

+9
-41
lines changed

.github/workflows/build.yml

+9-41
Original file line numberDiff line numberDiff line change
@@ -1,49 +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-
37-
- name: Build
38-
run: |
39-
npm ci
40-
npm run licenses-check
41-
npm run lint
42-
npm run test:coverage
43-
npm run build
44-
45-
- name: SonarCloud Scan
46-
uses: SonarSource/sonarqube-scan-action@bfd4e558cda28cda6b5defafb9232d191be8c203 #v4.2.1
47-
env:
48-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49-
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)