From 741dd5104d257e52b747a343ffbd5ec85fe36776 Mon Sep 17 00:00:00 2001 From: Dominik Kundel Date: Tue, 31 Mar 2026 12:52:24 -0700 Subject: [PATCH] ci: add pull request workflow for tests and build --- .github/workflows/pull-request-ci.yml | 35 +++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/pull-request-ci.yml diff --git a/.github/workflows/pull-request-ci.yml b/.github/workflows/pull-request-ci.yml new file mode 100644 index 0000000..ebcff0b --- /dev/null +++ b/.github/workflows/pull-request-ci.yml @@ -0,0 +1,35 @@ +name: Pull Request CI + +on: + pull_request: + +permissions: + contents: read + +jobs: + ci: + name: CI + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - name: Check out repository + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + + - name: Set up Node.js + uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 + with: + node-version: 22 + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Install Codex CLI + run: npm install -g @openai/codex + + - name: Run test suite + run: npm test + + - name: Run build + run: npm run build