|
name: CI |
|
|
|
on: |
|
workflow_dispatch: |
|
pull_request: |
|
branches: [master, v20, v21, "v*"] |
|
push: |
|
branches: [master, v20, v21, "v*"] |
|
|
|
permissions: |
|
contents: read |
|
|
|
concurrency: |
|
group: ci-${{ github.workflow }}-${{ github.ref }} |
|
cancel-in-progress: true |
|
|
|
jobs: |
|
build-test-package: |
|
runs-on: ubuntu-latest |
|
timeout-minutes: 20 |
|
steps: |
|
- uses: actions/checkout@v7 |
|
- uses: actions/setup-node@v7 |
|
with: |
|
node-version: 24.15.0 |
|
cache: npm |
|
- run: npm ci |
|
- run: npm run lint |
|
- run: npm test |
|
- run: npm run build:demo |
|
- run: npm audit --omit=dev --audit-level=high |
|
- run: npm run verify:package |
|
- run: npm run verify:consumer |
|
- uses: actions/upload-artifact@v7 |
|
with: |
|
name: angular-plotly-package-${{ github.sha }} |
|
path: dist/plotly |
|
if-no-files-found: error |
|
retention-days: 14 |