Web/document server #1912
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: 🔗Pull Request Checks Workflow | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
checks: | |
name: 🫸 Pull Request Checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📥 Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: 🧩 Install dependencies | |
uses: ./.github/actions/setup | |
with: | |
github_packages_token: ${{ secrets.GH_PACKAGES_TOKEN }} | |
- name: 💅 Format code | |
shell: sh | |
run: | | |
pnpm --recursive --shell-mode exec biome ci \ | |
--max-diagnostics=none \ | |
--vcs-enabled=true \ | |
--vcs-use-ignore-file=true \ | |
--vcs-root="../../" \ | |
--formatter-enabled=true \ | |
--linter-enabled=false \ | |
--organize-imports-enabled=true \ | |
--reporter=github | |
- name: 🚨 Lint code | |
shell: sh | |
run: | | |
pnpm --recursive --shell-mode exec biome ci \ | |
--max-diagnostics=none \ | |
--vcs-enabled=true \ | |
--vcs-use-ignore-file=true \ | |
--vcs-root="../../" \ | |
--formatter-enabled=false \ | |
--linter-enabled=true \ | |
--organize-imports-enabled=false \ | |
--reporter=github . | |
- name: 🔍 Typecheck code | |
continue-on-error: true | |
run: pnpm typecheck | |
- name: 🧪 Run unit tests | |
run: pnpm test:unit | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug: suddenlyGiovanni/suddenlygiovanni.dev | |
working-directory: apps/web | |
directory: coverage | |
fail_ci_if_error: false | |
- name: 🏗️ Build project | |
run: pnpm build |