Use db to persist settings on each repositories as well as cache summary #41
Workflow file for this run
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 CI | |
on: | |
push: | |
branches: [main] | |
paths: | |
- "frontend/**" | |
- ".github/workflows/frontend-ci.yml" | |
pull_request: | |
branches: [main] | |
paths: | |
- "frontend/**" | |
- ".github/workflows/frontend-ci.yml" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: frontend | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 9.15.0 | |
run_install: false | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
cache: "pnpm" | |
cache-dependency-path: "frontend/pnpm-lock.yaml" | |
- name: Install dependencies | |
shell: bash | |
run: | | |
pnpm install --frozen-lockfile | |
env: | |
CI: true | |
- name: Type check | |
run: pnpm tsc --noEmit | |
- name: Lint | |
run: pnpm lint | |
- name: Build | |
run: pnpm build | |
env: | |
CI: true |