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