From 73f436e78fe24ad74c7db32641234b54087157cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Sat, 21 Oct 2023 17:35:40 +0200 Subject: [PATCH 1/3] Add GitHub Actions workflow --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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 00000000..7efc3a63 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI + +on: + pull_request: + push: + +permissions: + contents: read + +jobs: + test: + runs-on: ${{matrix.os}} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + node-version: [0.10, 0.12, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21] + fail-fast: false + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set up Node.js ${{matrix.node-version}} + uses: actions/setup-node@v3 + with: + node-version: ${{matrix.node-version}} + - name: Install dependencies + run: npm install + - name: Build + run: node_modules/.bin/node-gyp rebuild --directory test + - name: Test + run: node_modules/.bin/tap --gc test/js/*-test.js; fi From 02b5c5fd81909bc5c8dea906a4f4571ecda63589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Sat, 21 Oct 2023 17:37:59 +0200 Subject: [PATCH 2/3] fixup! --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7efc3a63..f88ba122 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,4 +27,4 @@ jobs: - name: Build run: node_modules/.bin/node-gyp rebuild --directory test - name: Test - run: node_modules/.bin/tap --gc test/js/*-test.js; fi + run: node_modules/.bin/tap --gc test/js/*-test.js From b487e549322dd634fc80eae4044226f041fdfd6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Sat, 21 Oct 2023 17:40:16 +0200 Subject: [PATCH 3/3] fixup! --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f88ba122..90696c0d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - node-version: [0.10, 0.12, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21] + node-version: ['0.10', 0.12, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21] fail-fast: false steps: - name: Checkout