diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 51f2d617..00000000 --- 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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..1ad4f127 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,33 @@ +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 }} + + - name: Install dependencies + run: npm install + + - name: Test + run: npm test