Skip to content

Commit

Permalink
chore: Refactor Travis CI stage
Browse files Browse the repository at this point in the history
Travis executes the yarn test command by default when
we specify multiple node versions at the root.
In this case we run the tests twice.
  • Loading branch information
Merkur39 committed Dec 15, 2023
1 parent 50fae21 commit 3f942f8
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
dist: jammy
language: node_js
node_js:
- '16'
- '20'
node_js: 16
branches:
only:
- master
Expand Down Expand Up @@ -31,13 +29,11 @@ jobs:
script: yarn lint
- name: 'Unit tests node 16'
stage: 'prebuild'
node_js:
- 16
node_js: 16
script: yarn test
- name: "Unit tests node 20"
stage: "prebuild"
node_js:
- 20
node_js: 20
script: yarn test
- name: 'Build app'
stage: 'build'
Expand Down

0 comments on commit 3f942f8

Please sign in to comment.