Merge pull request #307 from techulus/feature/server-resource-alerts #685
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: Web Build | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - release | |
| paths: | |
| - "web/**" | |
| - ".github/workflows/web-build.yml" | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "web/**" | |
| - ".github/workflows/web-build.yml" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: web-build-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: blacksmith-2vcpu-ubuntu-2404 | |
| timeout-minutes: 30 | |
| defaults: | |
| run: | |
| working-directory: web | |
| env: | |
| DATABASE_URL: postgres://build:build@localhost:5432/build | |
| BETTER_AUTH_SECRET: build-secret | |
| BETTER_AUTH_URL: http://localhost:3000 | |
| APP_URL: http://localhost:3000 | |
| NEXT_PUBLIC_APP_VERSION: ${{ github.sha }} | |
| NEXT_TELEMETRY_DISABLED: "1" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 11.20.0 | |
| - name: Set up Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| cache-dependency-path: web/pnpm-lock.yaml | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build | |
| run: pnpm build |