Skip to content

Commit 1a9c588

Browse files
committed
ci: update envirnoment
see: loopbackio/cicd#2 see: loopbackio/cicd#6 see: loopbackio/cicd#4 Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
1 parent e162f8c commit 1a9c588

File tree

2 files changed

+27
-14
lines changed

2 files changed

+27
-14
lines changed

.github/workflows/continuous-integration.yaml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,26 @@ jobs:
2323
node-version: [10, 12, 14, 16]
2424
include:
2525
- os: macos-latest
26-
node_version: 14
26+
node_version: 16
2727
- os: windows-latest
28-
node_version: 14
28+
node_version: 16
2929
fail-fast: false
3030
steps:
3131
- uses: actions/checkout@v2
3232
- name: Use Node.js ${{ matrix.node-version }}
3333
uses: actions/setup-node@v1
3434
with:
3535
node-version: ${{ matrix.node-version }}
36+
- name: Update NPM (Node.js v10)
37+
if: matrix.node-version == '10'
38+
run: npm install --global npm@7
3639
- name: Update NPM
37-
if: matrix.os != 'macos-latest'
38-
run: npm install --global npm
39-
- name: Update NPM (macOS)
40-
if: matrix.os == 'macos-latest'
41-
run: npm install --global --force npm
40+
# if: matrix.os != 'macos-latest'
41+
if: matrix.node-version != '10'
42+
run: npm install --global npm@8
43+
# - name: Update NPM (macOS)
44+
# if: matrix.os == 'macos-latest'
45+
# run: npm install --global --force npm
4246
- name: Bootstrap project
4347
run: npm ci --ignore-scripts
4448
- name: Run tests
@@ -67,10 +71,10 @@ jobs:
6771
runs-on: ubuntu-latest
6872
steps:
6973
- uses: actions/checkout@v2
70-
- name: Use Node.js 14
74+
- name: Use Node.js 16
7175
uses: actions/setup-node@v2
7276
with:
73-
node-version: 14
77+
node-version: 16
7478
- name: Bootstrap project
7579
run: npm ci --ignore-scripts
7680
- name: Verify code linting
@@ -83,10 +87,10 @@ jobs:
8387
- uses: actions/checkout@v2
8488
with:
8589
fetch-depth: 0
86-
- name: Use Node.js 14
90+
- name: Use Node.js 16
8791
uses: actions/setup-node@v2
8892
with:
89-
node-version: 14
93+
node-version: 16
9094
- name: Bootstrap project
9195
run: npm ci --ignore-scripts
9296
- name: Verify commit linting

.travis.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,22 @@ arch:
44
- arm64
55
- ppc64le
66
- s390x
7+
os: linux
8+
dist: bionic
79
language: node_js
810
node_js:
911
- 10
1012
- 12
1113
- 14
1214
- 16
13-
install:
14-
- npm install --global npm
15-
- npm ci --ignore-scripts
15+
- 17
16+
before_install: |
17+
NODEJS_VERSION=$(node --version)
18+
if [ 'v10' = "${NODEJS_VERSION%%.*}" ]
19+
then
20+
npm install --global npm@7
21+
else
22+
npm install --global npm@8
23+
fi
24+
install: npm ci --ignore-scripts
1625
script: npm test --ignore-scripts

0 commit comments

Comments
 (0)