add some check on the diagram curve pq (#2432) #17918
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
jobs: | |
license-headers: | |
name: Check licenses headers | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-node@v3 | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Check License Header (Check Mode) | |
uses: apache/skywalking-eyes/header@v0.5.0 | |
with: | |
config: .github/config/.licenserc.yaml | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Install and Build | |
env: | |
NODE_OPTIONS: "--max_old_space_size=4096" | |
run: | | |
npm install | |
npm run licenses-check | |
npm run lint | |
npm run test:coverage | |
npm run build | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@v3.0.0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
- name: Build and publish Docker image - Main | |
if: github.ref == 'refs/heads/main' | |
uses: elgohr/Publish-Docker-Github-Action@33a481be3e179353cb7793a92b57cf9a6c985860 # v4 | |
with: | |
name: gridsuite/gridstudy-app | |
username: gridsuiteci | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Broadcast update event | |
if: github.ref == 'refs/heads/main' | |
uses: gridsuite/broadcast-event@main | |
with: | |
token: ${{ secrets.REPO_ACCESS_TOKEN }} | |
event-type: gridstudy_app_updated |