From 9dc448ddaa7bef5082e8c5d78e01f27050a3d1d3 Mon Sep 17 00:00:00 2001 From: Jozef Izso Date: Tue, 7 Jan 2025 11:35:27 +0100 Subject: [PATCH 1/2] Create build workflow --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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..644ac6a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +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 }} + + - name: npm ci + run: npm ci + + - name: npm test + run: npm test From 2c9e5606f532b3d82d6c04ed377b4436c75a4586 Mon Sep 17 00:00:00 2001 From: Jozef Izso Date: Tue, 7 Jan 2025 11:26:43 +0100 Subject: [PATCH 2/2] Run on multiple macOS systems --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 644ac6a..8c4ea3b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,13 +10,14 @@ on: jobs: build: - name: build (node v${{ matrix.node }}) + name: build (node v${{ matrix.node }} ${{ matrix.os }}) - runs-on: macos-latest + runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: + os: [ macos-13, macos-15 ] node: [ 18, 20 ] steps: