Skip to content

Commit

Permalink
test supported node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
dangowans committed Dec 4, 2023
1 parent 3a19ac8 commit 22ddde2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [ 14, 16, 18, 20 ]
node: [ 18, 20, 21 ]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -25,17 +25,13 @@ jobs:
node-version: ${{ matrix.node }}
cache: 'npm'

- name: Update NPM (Node 14)
if: ${{ matrix.node == 14 }}
run: npm install -g npm@7

- name: Install Package
run: |
npm ci
npm install -g mocha c8
- name: Code Climate (Before)
if: ${{ github.event_name != 'pull_request' && env.CC_TEST_REPORTER_ID != '' && matrix.node == 18 }}
if: ${{ github.event_name != 'pull_request' && env.CC_TEST_REPORTER_ID != '' && matrix.node == 20 }}
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./codeclimate-test-reporter
chmod +x codeclimate-test-reporter
Expand All @@ -45,19 +41,19 @@ jobs:
run: c8 --reporter=lcov --reporter=text --reporter=text-summary mocha --timeout 60000 --exit

- name: Code Climate (After)
if: ${{ github.event_name != 'pull_request' && env.CC_TEST_REPORTER_ID != '' && matrix.node == 18 }}
if: ${{ github.event_name != 'pull_request' && env.CC_TEST_REPORTER_ID != '' && matrix.node == 20 }}
run: |
./codeclimate-test-reporter after-build -t lcov --exit-code $?
- name: Codecov
if: ${{ github.event_name != 'pull_request' && env.CODECOV_TOKEN != '' && matrix.node == 18 }}
if: ${{ github.event_name != 'pull_request' && env.CODECOV_TOKEN != '' && matrix.node == 20 }}
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${CODECOV_TOKEN}
- name: DeepSource
if: ${{ github.event_name != 'pull_request' && env.DEEPSOURCE_DSN != '' && matrix.node == 18 }}
if: ${{ github.event_name != 'pull_request' && env.DEEPSOURCE_DSN != '' && matrix.node == 20 }}
run: |
# Install deepsource CLI
curl https://deepsource.io/cli | sh
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.2",
"type": "module",
"engines": {
"node": "^14.13.1 || >=16.0.0"
"node": ">=18.0.0"
},
"description": "Formats Electronic Funds Transfer (EFT) data into the CPA 005 standard.",
"exports": "./index.js",
Expand Down

0 comments on commit 22ddde2

Please sign in to comment.