From 134ef89ed3f2e337b1cc23c4015c2e0cf5c1cd7b Mon Sep 17 00:00:00 2001 From: Frederik Prijck Date: Thu, 3 Oct 2024 10:44:08 +0200 Subject: [PATCH 1/3] Create test.yml --- .github/workflows/test.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..11293ff --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,34 @@ +name: Test + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +permissions: + contents: read + +jobs: + test: + strategy: + matrix: + node: [ 12, 14, 16, 18, 20 ] + + name: Test (Node ${{ matrix.node }}) + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + cache: npm + + - name: Install dependencies + run: npm install + + - name: Test + run: npm test From 8d348c64a8f78805caabc40c5f3af75559b9f635 Mon Sep 17 00:00:00 2001 From: Frederik Prijck Date: Thu, 3 Oct 2024 10:44:19 +0200 Subject: [PATCH 2/3] Delete .circleci directory --- .circleci/config.yml | 47 -------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 51f2d61..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,47 +0,0 @@ -version: 2.1 - -# Thanks to https://github.com/teppeis-sandbox/circleci2-multiple-node-versions - -commands: - test-nodejs: - steps: - - run: - name: Versions - command: npm version - - checkout - - run: - name: Install dependencies - command: npm install - - run: - name: Test - command: npm test - -jobs: - node-v12: - docker: - - image: node:12 - steps: - - test-nodejs - node-v14: - docker: - - image: node:14 - steps: - - test-nodejs - node-v16: - docker: - - image: node:16 - steps: - - test-nodejs - node-v18: - docker: - - image: node:18 - steps: - - test-nodejs - -workflows: - node-multi-build: - jobs: - - node-v12 - - node-v14 - - node-v16 - - node-v18 From ffc411966116942e94fca5e92ee4360b79608467 Mon Sep 17 00:00:00 2001 From: Frederik Prijck Date: Thu, 3 Oct 2024 10:51:34 +0200 Subject: [PATCH 3/3] Update test.yml --- .github/workflows/test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 11293ff..1ad4f12 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,7 +25,6 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} - cache: npm - name: Install dependencies run: npm install