completed Analysis Pipeline #7
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
# .github/workflows/pr-validation.yml | |
name: PR Validation | |
on: | |
pull_request: | |
branches: [ main, staging ] | |
push: | |
branches: [ main, staging ] | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
env: | |
NODE_ENV: test | |
GITHUB_TOKEN: ${{ secrets.TEST_GITHUB_TOKEN }} | |
GITHUB_TEST_OWNER: ${{ secrets.TEST_OWNER }} | |
GITHUB_TEST_REPO: ${{ secrets.TEST_REPO }} | |
DATABASE_URL: ${{ secrets.TEST_DATABASE_URL }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20.x' | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Lint | |
run: pnpm lint | |
- name: Type check | |
run: pnpm type-check | |
- name: Test | |
run: pnpm test | |
- name: Build | |
run: pnpm build |