chore: change stage wording active to current #7380
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: Frontend Tests | |
on: | |
pull_request: | |
branches: | |
- main | |
- "release/*.*.*" | |
paths: | |
- "frontend/**" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
static-checks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3.0.0 | |
with: | |
version: 9 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20.12.2" | |
cache: pnpm | |
cache-dependency-path: "frontend/pnpm-lock.yaml" | |
- run: pnpm install --frozen-lockfile | |
working-directory: frontend | |
- name: Run pnpm lint | |
run: pnpm lint | |
working-directory: frontend | |
- name: Run pnpm type-check | |
run: pnpm type-check | |
working-directory: frontend | |
frontend-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3.0.0 | |
with: | |
version: 9 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20.12.2" | |
cache: pnpm | |
cache-dependency-path: "frontend/pnpm-lock.yaml" | |
- run: pnpm install --frozen-lockfile | |
working-directory: frontend | |
- name: Copy config files | |
run: | | |
cp ../backend/plugin/advisor/config/* ./src/types | |
cp ../backend/enterprise/api/plan.yaml ./src/types | |
working-directory: frontend | |
- name: Run pnpm test | |
run: pnpm test | |
working-directory: frontend | |
- name: Run pnpm release build | |
run: pnpm release-docker | |
working-directory: frontend |