openai/codex-action

Public

mirrored from https://github.com/openai/codex-actionAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
pr57

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/workflows/ci.yml

43lines · modeblame

e9d0a695Michael Bolin10 months ago1name: Verify TypeScript Build
2
3on:
4pull_request:
5push:
6branches:
7- main
8
9jobs:
10verify:
11runs-on: ubuntu-latest
12steps:
13- name: Checkout repository
14uses: actions/checkout@v5
15
16- name: Setup pnpm
17uses: pnpm/action-setup@v4
18with:
19run_install: false
20
21- name: Setup Node.js
22uses: actions/setup-node@v5
23with:
24node-version: 22
25cache: "pnpm"
26
27- name: Install dependencies
28run: pnpm install --frozen-lockfile
29
30- name: Typecheck
31run: pnpm run check
32
33- name: Build bundles
34run: pnpm run build
35
36- name: Ensure dist matches bundled output
37run: |
bb1bceceMichael Bolin9 months ago38status_output="$(git status --short -- dist)"
39if [[ -n "$status_output" ]]; then
e9d0a695Michael Bolin10 months ago40echo '::error::Detected modified files in dist/ after running pnpm run build. Please rebuild locally and commit the updated bundles.'
bb1bceceMichael Bolin9 months ago41echo "$status_output"
e9d0a695Michael Bolin10 months ago42exit 1
43fi