From b4b56cb8ba2faf21b40f6328e1b08c458ab6e661 Mon Sep 17 00:00:00 2001 From: Liz Ainslie Date: Mon, 26 Oct 2026 05:04:19 -0500 Subject: [PATCH] ci: build and test core, server and pack on every PR and main push --- .github/workflows/ci.yml | 42 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..427cbb7 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,42 @@ +name: CI + +on: + pull_request: + push: + branches: [main] + +permissions: + contents: read + +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + server: + name: Server build + tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: pnpm/action-setup@v4 + with: + package_json_file: server/pack/package.json + version: 10 + - uses: actions/setup-node@v4 + with: + node-version: "22" + cache: pnpm + cache-dependency-path: server/pack/pnpm-lock.yaml + - name: Install pack deps + working-directory: server/pack + run: pnpm install --frozen-lockfile + - name: Build pack + working-directory: server/pack + run: pnpm build + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: "21" + - uses: gradle/actions/setup-gradle@v4 + - name: Build and test core + server + run: ./gradlew :core:build :server:build --stacktrace