From a0359e503344e53993899e3c07b00c9af95adc1d Mon Sep 17 00:00:00 2001 From: Kevin Van Lierde Date: Mon, 7 Aug 2023 22:25:47 +0200 Subject: [PATCH] Drops support for Node < 14.14.0, updates CI, drops Gitter notification --- .github/workflows/gitter.yml | 10 ---------- .github/workflows/test.yml | 18 +++++++++--------- package.json | 2 +- 3 files changed, 10 insertions(+), 20 deletions(-) delete mode 100644 .github/workflows/gitter.yml diff --git a/.github/workflows/gitter.yml b/.github/workflows/gitter.yml deleted file mode 100644 index ca3759a..0000000 --- a/.github/workflows/gitter.yml +++ /dev/null @@ -1,10 +0,0 @@ -name: Gitter notification -on: create - -jobs: - notify: - if: github.ref_type == 'tag' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - run: curl --data-urlencode "message=[${{github.repository}} ${{github.ref_name}}](https://github.com/${{github.repository}}/releases/${{github.ref_name}}) released" ${{secrets.GITTER_CUSTOM_WEBHOOK}} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a55d6f2..ea5a557 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,7 +25,7 @@ jobs: strategy: matrix: os: ['ubuntu-latest', 'windows-latest'] - node: ['12.0'] + node: ['14.14.0'] name: Testing Node ${{ matrix.node }} on ${{ matrix.os }} steps: - uses: actions/checkout@v3 @@ -33,7 +33,7 @@ jobs: with: cache: 'npm' - - run: npm install --no-package-lock + - run: npm install - run: npm test test: @@ -43,7 +43,7 @@ jobs: strategy: matrix: os: ['ubuntu-latest', 'windows-latest'] - node: ['12.0', '14.0', '16.0'] + node: ['14.14.0', '16.0', '18.0'] name: Testing Node ${{ matrix.node }} on ${{ matrix.os }} steps: - uses: actions/checkout@v3 @@ -52,12 +52,12 @@ jobs: node-version: ${{ matrix.node }} cache: 'npm' - - run: npm install --no-package-lock + - run: npm install - run: npm test - - if: matrix.os == 'ubuntu-latest' && matrix.node == '16.0' + - if: matrix.os == 'ubuntu-latest' && matrix.node == '18.0' run: npm run coverage - - if: matrix.os == 'ubuntu-latest' && matrix.node == '16.0' - uses: coverallsapp/github-action@1.1.3 + - if: matrix.os == 'ubuntu-latest' && matrix.node == '18.0' + uses: coverallsapp/github-action@v2 with: - github-token: ${{ github.token }} - path-to-lcov: ./coverage.info + file: coverage.info + format: lcov diff --git a/package.json b/package.json index bc9c1ed..3628ad4 100644 --- a/package.json +++ b/package.json @@ -72,6 +72,6 @@ "metalsmith": "^2.6.0" }, "engines": { - "node": ">=12" + "node": ">=14.14.0" } }