changes #54
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: CLIENT CI Pipeline | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: "client" | |
| strategy: | |
| matrix: | |
| node-version: [22.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.26.2 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: "pnpm" | |
| cache-dependency-path: "client/pnpm-lock.yaml" | |
| - name: Recreate .env from secret | |
| run: echo "${{ secrets.PROD_ENV_FILE }}" > .env | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Format Client | |
| run: pnpm run format | |
| - name: Test Client | |
| run: pnpm run test | |
| - name: Test coverage Client | |
| run: pnpm run coverage | |
| - name: Build Client | |
| run: pnpm run build |