Repository navigation
[ENHANCEMENT] dashboards make panel desc link accessable by tab key #1773
Workflow file for this run
This file contains hidden or 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 | |
| - release/* | |
| pull_request: | |
| merge_group: | |
| release: | |
| types: | |
| - published | |
| jobs: | |
| build: | |
| name: 'build' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v7 | |
| - uses: perses/github-actions@v0.13.0 | |
| - uses: ./.github/perses-ci/actions/setup_environment | |
| with: | |
| enable_npm: true | |
| enable_go: true | |
| nvmrc_path: './.nvmrc' | |
| - name: install dependencies | |
| run: npm ci | |
| - name: build libraries | |
| run: 'npm run build' | |
| - name: store libraries archives | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: archives | |
| path: | | |
| **/dist | |
| !node_modules | |
| lint-npm: | |
| name: 'lint-npm' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v7 | |
| - uses: perses/github-actions@v0.13.0 | |
| - uses: ./.github/perses-ci/actions/setup_environment | |
| with: | |
| enable_npm: true | |
| - run: npm ci | |
| - run: npm run lint | |
| - run: npm run format:check | |
| test-npm: | |
| name: 'test-npm' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v7 | |
| - uses: perses/github-actions@v0.13.0 | |
| - uses: ./.github/perses-ci/actions/setup_environment | |
| with: | |
| enable_npm: true | |
| - run: npm ci | |
| - run: npm run test | |
| type-check: | |
| name: 'type-check' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v7 | |
| - uses: perses/github-actions@v0.13.0 | |
| - uses: ./.github/perses-ci/actions/setup_environment | |
| with: | |
| enable_npm: true | |
| - run: npm ci | |
| - run: npm run type-check | |
| # Packages are developed against React 18 (the minimum supported version); also validate them against React 19. | |
| react-19: | |
| name: 'type-check & test (React 19)' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v7 | |
| - uses: perses/github-actions@v0.13.0 | |
| - uses: ./.github/perses-ci/actions/setup_environment | |
| with: | |
| enable_npm: true | |
| - run: npm ci | |
| - run: npm install --no-save react@^19 react-dom@^19 @types/react@^19 @types/react-dom@^19 | |
| - run: npm run type-check | |
| - run: npm run test | |
| release: | |
| name: 'release' | |
| needs: 'build' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write # Required for OIDC trusted publishing | |
| contents: read | |
| if: ${{ github.event.release.tag_name }} | |
| env: | |
| GITHUB_TOKEN: ${{ github.TOKEN }} | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v7 | |
| - uses: perses/github-actions@v0.13.0 | |
| - uses: ./.github/perses-ci/actions/setup_environment | |
| with: | |
| enable_npm: true | |
| enable_go: true | |
| nvmrc_path: './.nvmrc' | |
| - name: Download archive | |
| uses: actions/download-artifact@v8 | |
| with: | |
| name: archives | |
| - name: Publish npm package | |
| run: go run ./scripts/npm-publish/npm-publish.go -tag=${{ github.event.release.tag_name }} |