From 2bccf23c64e661dafd4e8e810c9f5bd32ae6398e Mon Sep 17 00:00:00 2001 From: HARPER Jon Date: Wed, 26 Mar 2025 16:59:07 +0100 Subject: [PATCH] use generic worfklow for build Signed-off-by: HARPER Jon --- .github/workflows/build.yml | 50 +++++++------------------------------ 1 file changed, 9 insertions(+), 41 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c24ef8fb..f64566c3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,5 @@ name: CI + on: push: branches: @@ -6,44 +7,11 @@ on: pull_request: jobs: - license-headers: - name: Check licenses headers - runs-on: ubuntu-latest - steps: - - name: Checkout sources - uses: actions/checkout@v4 - with: - persist-credentials: false - - uses: actions/setup-node@v4 - with: - node-version: 22 - - name: Check License Header (Check Mode) - uses: apache/skywalking-eyes/header@v0.5.0 - with: - config: .github/config/.licenserc.yaml - - build: - runs-on: ubuntu-latest - steps: - - name: Checkout sources - uses: actions/checkout@v4 - with: - persist-credentials: false - - - uses: actions/setup-node@v4 - with: - node-version: 22 - - - name: Build - run: | - npm ci - npm run licenses-check - npm run lint - npm run test:coverage - npm run build - - - name: SonarCloud Scan - uses: SonarSource/sonarqube-scan-action@bfd4e558cda28cda6b5defafb9232d191be8c203 #v4.2.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + build: + uses: powsybl/github-ci/.github/workflows/build-frontend-lib-generic.yml@852670523f7fb3699d16efcbdd6d7500d5730b2f + with: + eventType: diagram_viewer_updated + licensercPath: .github/config/.licenserc.yaml + secrets: + sonar-token: ${{ secrets.SONAR_TOKEN }} + repo-token: ${{ secrets.REPO_ACCESS_TOKEN }}