Skip to content

[PRM-732] resolve more Dependabot issues #29

[PRM-732] resolve more Dependabot issues

[PRM-732] resolve more Dependabot issues #29

name: "Z-AUTOMATED: Deploy Dashboard - Dev"
on:
push:
branches: [main]
paths:
- "dashboard/**"
- ".github/workflows/automated-deploy-dashboard-dev.yml"
- ".github/workflows/deploy-dashboard-dev.yml"
pull_request:
branches: [main]
paths:
- "dashboard/**"
- ".github/workflows/automated-deploy-dashboard-dev.yml"
- ".github/workflows/deploy-dashboard-dev.yml"
permissions:
pull-requests: write
id-token: write
contents: read
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./dashboard
steps:
- uses: actions/checkout@v6
- name: Use Node.js 24.x
uses: actions/setup-node@v6
with:
node-version: 24.x
cache: "npm"
cache-dependency-path: dashboard/package-lock.json
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test
test-e2e:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./dashboard
needs: test
steps:
- uses: actions/checkout@v6
- name: Use Node.js 24.x
uses: actions/setup-node@v6
with:
node-version: 24.x
cache: "npm"
cache-dependency-path: dashboard/package-lock.json
- name: Get stubs
run: ./tasks get-stubs
- name: Build for e2e
run: npm run build:ci
- name: Run E2E tests
run: ./tasks canary-test-e2e
build-and-publish-ui:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: ./.github/workflows/deploy-dashboard-dev.yml
secrets: inherit