chore(deps): update dependency vite to v5.4.12 [security] #51
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/[email protected] | |
with: | |
version: 9 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20.14.0" | |
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/[email protected] | |
with: | |
version: 9 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20.14.0" | |
cache: pnpm | |
cache-dependency-path: "frontend/pnpm-lock.yaml" | |
- run: pnpm install --frozen-lockfile | |
working-directory: frontend | |
- name: Copy config files | |
run: | | |
cp ../backend/enterprise/api/plan.yaml ./src/types | |
cp ../backend/component/iam/permission.yaml ./src/types/iam | |
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 |