From d65805cf060b51d13afc6044f982f612c6462098 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sat, 30 May 2026 19:09:11 +0900 Subject: [PATCH] feat(packages): add ci.yml --- .../comment-checker/.github/workflows/ci.yml | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 packages/omo-codex/plugin/components/comment-checker/.github/workflows/ci.yml diff --git a/packages/omo-codex/plugin/components/comment-checker/.github/workflows/ci.yml b/packages/omo-codex/plugin/components/comment-checker/.github/workflows/ci.yml new file mode 100644 index 000000000..6cc7a1653 --- /dev/null +++ b/packages/omo-codex/plugin/components/comment-checker/.github/workflows/ci.yml @@ -0,0 +1,47 @@ +name: ci + +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + test: + name: test (${{ matrix.os }} ยท node ${{ matrix.node }}) + runs-on: ${{ matrix.os }} + timeout-minutes: 15 + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + node: ["20", "22"] + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Setup Node ${{ matrix.node }} + uses: actions/setup-node@v6 + with: + node-version: ${{ matrix.node }} + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Check + run: npm run check + + - name: Unit tests + run: npm test + + - name: Package smoke + run: npm pack --dry-run