update test node versions
parent
18a5eb729a
commit
95bbfeba48
|
|
@ -10,12 +10,12 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
node: [ 14, 16, 18 ]
|
node: [ 18, 20, 21 ]
|
||||||
env:
|
env:
|
||||||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
||||||
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
|
||||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
||||||
|
DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }}
|
||||||
name: Node ${{ matrix.node }}
|
name: Node ${{ matrix.node }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
@ -24,10 +24,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node }}
|
node-version: ${{ matrix.node }}
|
||||||
|
|
||||||
- name: Update npm (Node 14 only)
|
|
||||||
run: npm install -g npm@7
|
|
||||||
if: ${{ matrix.node == 14 }}
|
|
||||||
|
|
||||||
- name: Install Application
|
- name: Install Application
|
||||||
run: |
|
run: |
|
||||||
npm ci
|
npm ci
|
||||||
|
|
@ -40,7 +36,7 @@ jobs:
|
||||||
run: npm run test:startup
|
run: npm run test:startup
|
||||||
|
|
||||||
- name: Code Climate (Before)
|
- name: Code Climate (Before)
|
||||||
if: ${{ github.event_name != 'pull_request' && env.CC_TEST_REPORTER_ID != '' && matrix.node == 16 }}
|
if: ${{ github.event_name != 'pull_request' && env.CC_TEST_REPORTER_ID != '' && matrix.node == 20 }}
|
||||||
run: |
|
run: |
|
||||||
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./codeclimate-test-reporter
|
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./codeclimate-test-reporter
|
||||||
chmod +x codeclimate-test-reporter
|
chmod +x codeclimate-test-reporter
|
||||||
|
|
@ -55,17 +51,22 @@ jobs:
|
||||||
run: c8 --reporter=lcov --reporter=text --reporter=text-summary mocha --timeout 10000 --exit
|
run: c8 --reporter=lcov --reporter=text --reporter=text-summary mocha --timeout 10000 --exit
|
||||||
|
|
||||||
- name: Code Climate (After)
|
- name: Code Climate (After)
|
||||||
if: ${{ github.event_name != 'pull_request' && env.CC_TEST_REPORTER_ID != '' && matrix.node == 16 }}
|
if: ${{ github.event_name != 'pull_request' && env.CC_TEST_REPORTER_ID != '' && matrix.node == 20 }}
|
||||||
run: |
|
run: |
|
||||||
./codeclimate-test-reporter after-build -t lcov --exit-code $?
|
./codeclimate-test-reporter after-build -t lcov --exit-code $?
|
||||||
|
|
||||||
- name: Codacy
|
|
||||||
if: ${{ github.event_name != 'pull_request' && env.CODACY_PROJECT_TOKEN != '' && matrix.node == 16 }}
|
|
||||||
run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r ./coverage/lcov.info
|
|
||||||
|
|
||||||
- name: Codecov
|
- name: Codecov
|
||||||
if: ${{ github.event_name != 'pull_request' && env.CODECOV_TOKEN != '' && matrix.node == 16 }}
|
if: ${{ github.event_name != 'pull_request' && env.CODECOV_TOKEN != '' && matrix.node == 20 }}
|
||||||
run: |
|
run: |
|
||||||
curl -Os https://uploader.codecov.io/latest/linux/codecov
|
curl -Os https://uploader.codecov.io/latest/linux/codecov
|
||||||
chmod +x codecov
|
chmod +x codecov
|
||||||
./codecov -t ${CODECOV_TOKEN}
|
./codecov -t ${CODECOV_TOKEN}
|
||||||
|
|
||||||
|
- name: DeepSource
|
||||||
|
if: ${{ github.event_name != 'pull_request' && env.DEEPSOURCE_DSN != '' && matrix.node == 20 }}
|
||||||
|
run: |
|
||||||
|
# Install deepsource CLI
|
||||||
|
curl https://deepsource.io/cli | sh
|
||||||
|
|
||||||
|
# From the root directory, run the report coverage command
|
||||||
|
./bin/deepsource report --analyzer test-coverage --key javascript --value-file ./coverage/lcov.info
|
||||||
Loading…
Reference in New Issue