Skip to content

Commit

Permalink
node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
koyopro committed Jan 9, 2025
1 parent 1f371df commit 78f58ce
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/configuration-reference
version: 2.1

# Orbs are reusable packages of CircleCI configuration that you may share across projects, enabling you to create encapsulated, parameterized commands, jobs, and executors that can be used across multiple projects.
# See: https://circleci.com/docs/orb-intro/
orbs:
# See the Node orb documentation here: https://circleci.com/developer/orbs/orb/circleci/node
node: circleci/node@7.0.0

jobs:
test:
docker:
- image: cimg/node:22.13
- image: << parameters.node_image >>
environment:
VITEST_MIN_THREADS: 2
VITEST_MAX_THREADS: 4
- image: cimg/mysql:8.0
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
Expand All @@ -32,8 +30,17 @@ jobs:
- run: npm run test:sqlite
- run: npm run generate:pg
- run: npm run test:pg
parameters:
node_image:
type: string
default: cimg/node:22.13

workflows:
test_my_app:
jobs:
- test
- test:
name: test_node_20
node_image: cimg/node:20.18
- test:
name: test_node_22
node_image: cimg/node:22.13

0 comments on commit 78f58ce

Please sign in to comment.