Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 9 additions & 41 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,17 @@
name: CI

on:
push:
branches:
- 'main'
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 }}