From a7a4320d0ec93fce5782528716264d64295c94e7 Mon Sep 17 00:00:00 2001 From: Jozef Izso Date: Sun, 14 Jul 2024 13:14:42 +0200 Subject: [PATCH] Create build workflow --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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..7a329a8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: ci + +permissions: + contents: read + +on: + push: + pull_request: + branches: [ main ] + +jobs: + build: + name: build (node v${{ matrix.node }}) + + runs-on: macos-latest + + strategy: + fail-fast: false + matrix: + node: [ 18, 20 ] + + steps: + - name: checkout + uses: actions/checkout@v4 + + - name: setup node + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + + - run: npm install + - run: npm test