Skip to content

Commit

Permalink
chore: update test suite (#571)
Browse files Browse the repository at this point in the history
* chore: test newer pnpm version

* chore: add sudo to circleci

* chore: update chromatic pnpm
  • Loading branch information
Xhale1 authored Jun 20, 2023
1 parent 00d2fd2 commit 41e9d20
Show file tree
Hide file tree
Showing 4 changed files with 3,120 additions and 3,009 deletions.
19 changes: 8 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@ orbs:
browser-tools: circleci/browser-tools@1.4.1

commands:
# TODO: Find a better to setup pnpm. We could use
# an image which have pnpm alreay setup on it.
# See: https://github.com/CircleCI-Public/cimg-node/issues/216
pnpm:
steps:
- run:
name: Install pnpm
command: curl -f https://get.pnpm.io/v6.js | sudo node - add --global pnpm
command: sudo corepack enable

- run:
name: Setup pnpm store path
Expand All @@ -20,7 +17,7 @@ commands:
jobs:
install:
docker:
- image: cimg/node:16.17.0-browsers
- image: cimg/node:18.16.0-browsers
working_directory: ~/repo
environment:
- CYPRESS_CACHE_FOLDER: '~/repo/node_modules/.cache/Cypress'
Expand Down Expand Up @@ -49,7 +46,7 @@ jobs:

validate:
docker:
- image: cimg/node:16.17.0-browsers
- image: cimg/node:18.16.0-browsers
working_directory: ~/repo
steps:
- checkout
Expand All @@ -65,7 +62,7 @@ jobs:

test-unit:
docker:
- image: cimg/node:16.17.0-browsers
- image: cimg/node:18.16.0-browsers
working_directory: ~/repo
resource_class: medium+
parameters:
Expand All @@ -91,7 +88,7 @@ jobs:

test-bundle:
docker:
- image: cimg/node:16.17.0-browsers
- image: cimg/node:18.16.0-browsers
working_directory: ~/repo
steps:
- checkout
Expand All @@ -107,7 +104,7 @@ jobs:

build:
docker:
- image: cimg/node:16.17.0-browsers
- image: cimg/node:18.16.0-browsers
working_directory: ~/repo
steps:
- checkout
Expand All @@ -128,7 +125,7 @@ jobs:

test-browser:
docker:
- image: cimg/node:16.17.0-browsers
- image: cimg/node:18.16.0-browsers
working_directory: ~/repo
environment:
- CYPRESS_CACHE_FOLDER: '~/repo/node_modules/.cache/Cypress'
Expand Down Expand Up @@ -157,7 +154,7 @@ jobs:

test-a11y:
docker:
- image: cimg/node:16.17.0-browsers
- image: cimg/node:18.16.0-browsers
working_directory: ~/repo
steps:
- browser-tools/install-chrome
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 16.17.0
node-version: 18.16.0

- name: Cache pnpm modules
uses: actions/cache@v3
Expand All @@ -24,7 +24,7 @@ jobs:
- uses: pnpm/action-setup@v2
with:
version: 6
version: 8
run_install: |
- args: [--frozen-lockfile]
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -211,5 +211,6 @@
"license": "Apache-2.0",
"jest-junit": {
"output": "test-reports/junit/js-test-results.xml"
}
},
"packageManager": "pnpm@8.6.3"
}
Loading

1 comment on commit 41e9d20

@vercel
Copy link

@vercel vercel bot commented on 41e9d20 Jun 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.