From 84cb07be64c90e734c76dbb094267828521ba796 Mon Sep 17 00:00:00 2001 From: James Garbutt <43081j@users.noreply.github.com> Date: Thu, 26 Dec 2024 17:07:45 +0000 Subject: [PATCH] chore: add github CI Adds a simple build workflow to github CI. --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..d230589 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +name: Build & Test + +on: + push: + branches: [trunk] + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18.x, 20.x] + fail-fast: false + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Use Node v${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + cache: 'pnpm' + node-version: ${{ matrix.node-version }} + - name: Use pnpm + uses: pnpm/action-setup@v4 + run_install: false + - name: Install + run: pnpm i + - name Build + run: pnpm run -r build