From 8741447ce2948095b2ffbb16088105f23e26d858 Mon Sep 17 00:00:00 2001 From: cahnory Date: Sun, 15 Oct 2023 19:14:55 +0200 Subject: [PATCH] chore: setup github CI workflow --- .github/workflows/ci.yaml | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..297f406 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,41 @@ +name: Continuous Integration + +on: + push: + branches: + - main + pull_request: + branches: + - main + types: + - opened + - synchronize + +jobs: + ci: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: + - 18.x + - 20.x + + steps: + - name: Checkout to ${{ github.ref }} + uses: actions/checkout@v4 + - name: Install pnpm + uses: pnpm/action-setup@v2 + with: + version: ^8.6.2 + - name: Install node ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: "pnpm" + - name: Install dependencies + run: pnpm install --ignore-scripts + - name: Build + run: pnpm build + - name: Test + run: pnpm test