Skip to content

Commit

Permalink
Update config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
evereq authored Oct 16, 2024
1 parent 93b1e3c commit 22a2254
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
version: 2.1

orbs:
node: circleci/node@5.0.0
node: circleci/node@5.2.0

defaults: &defaults
# put here anything which is common between all jobs
# we define default work dir, however almost every job redefine it
working_directory: ~/workspace

jobs:
check_lint:
working_directory: ~/workspace
check_lint:
<<: *defaults
docker:
- image: 'cimg/base:stable'
steps:
- checkout
- node/install:
install-yarn: true
node-version: '16.20.2'
node-version: '20.11.1'
- run: node --version
- restore_cache:
keys:
Expand All @@ -33,8 +38,8 @@ jobs:
name: Run Lint checks
command: bin/check_lint.sh

test_unit:
working_directory: ~/workspace
test_unit:
<<: *defaults
docker:
- image: 'cimg/base:stable'
- image: mysql:5.7
Expand All @@ -45,7 +50,7 @@ jobs:
- checkout
- node/install:
install-yarn: true
node-version: '16.20.2'
node-version: '20.11.1'
- run: node --version
- restore_cache:
keys:
Expand All @@ -69,8 +74,8 @@ jobs:
name: Run tests and checks
command: bin/test_unit.sh

test_e2e:
working_directory: ~/workspace
test_e2e:
<<: *defaults
docker:
- image: 'cimg/base:stable'
- image: mysql:5.7
Expand All @@ -81,7 +86,7 @@ jobs:
- checkout
- node/install:
install-yarn: true
node-version: '16.20.2'
node-version: '20.11.1'
- run: node --version
- restore_cache:
keys:
Expand All @@ -106,27 +111,29 @@ jobs:
command: bin/test_e2e.sh

build:
<<: *defaults
docker:
- image: 'cimg/base:stable'
steps:
- checkout
- node/install:
install-yarn: true
node-version: '16.20.2'
node-version: '20.11.1'
- run: node --version
- setup_remote_docker
- run:
name: Build
command: RELEASE=$CIRCLE_TAG bin/build-docker.sh

build_old:
<<: *defaults
docker:
- image: 'cimg/base:stable'
steps:
- checkout
- node/install:
install-yarn: true
node-version: '16.20.2'
node-version: '20.11.1'
- run: node --version
- setup_remote_docker
- run:
Expand Down

0 comments on commit 22a2254

Please sign in to comment.