Skip to content

Commit

Permalink
ci: update environment
Browse files Browse the repository at this point in the history
- Enable Node.js v17 testing
- Upgrade baseline Node.js to v16
- Re-enable Node.js v8.11.1 testing
- Remove unecessary configuration

see: loopbackio/cicd#2
see: loopbackio/cicd#4

Signed-off-by: Rifa Achrinza <[email protected]>
  • Loading branch information
achrinza committed Mar 30, 2022
1 parent 08e8651 commit e01ad86
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 28 deletions.
32 changes: 14 additions & 18 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,20 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [10, 12, 14, 16]
node-version: [8.11.1, 10, 12, 14, 16, 17]
include:
- os: macos-latest
node-version: 14 # LTS
node-version: 16 # LTS
- os: windows-latest
node-version: 14 # LTS
node-version: 16 # LTS
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Update NPM (Node.js v10)
if: matrix.node-version == 10
run: npm install --global npm@7
- name: Update NPM
if: matrix.node-version != 10
run: npm install --global npm@8
- name: Bootstrap project
if: ${{ matrix.node-version != '8.11.1' }}
run: npm ci --ignore-scripts
Expand All @@ -51,10 +43,6 @@ jobs:
run: npm run --ignore-scripts build
- name: Run tests
run: npm test --ignore-scripts
- name: troubleshooting
run: |
ls
ls ./coverage
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
Expand Down Expand Up @@ -82,14 +70,22 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js 14
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: 14
node-version: 16
- name: Bootstrap project
run: npm ci --ignore-scripts
- name: Verify commit linting
run: npx commitlint --from origin/master --to HEAD --verbose
run: |
npm exec \
--no-install \
--package=commitlint \
-- \
commitlint \
--verbose \
--from=origin/master \
--to=HEAD
codeql:
name: CodeQL
Expand Down
14 changes: 4 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,12 @@ branches:
- master
language: node_js
node_js:
- 8.11.1
- 10
- 12
- 14
- 16
before_install: |
NODEJS_VERSION=$(node --version)
if [ 'v10' == ${NODEJS_VERSION%%.*} ]
then
npm install --global npm@7
else
npm install --global npm@8
fi
- 17
script:
- npm run --ignore-scripts build
- npm test --ignore-scripts
- npm run-script build
- npm test

0 comments on commit e01ad86

Please sign in to comment.