Skip to content

feat(ci): add local PR Codex action wrapper - v2 #4

feat(ci): add local PR Codex action wrapper - v2

feat(ci): add local PR Codex action wrapper - v2 #4

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-test-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Lint
run: pnpm lint
- name: Format check
run: pnpm format:check
- name: Run tests
run: pnpm test
- name: PR AI Review (local)
if: github.event_name == 'pull_request'
uses: ./.github/actions/pr-codex-local
with:
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
use_oidc: true
fail_ci_if_error: true
verbose: true