Skip to content

Commit

Permalink
Updated CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ethriel3695 committed May 21, 2024
1 parent e12d29f commit 3c02939
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ jobs:

- restore_cache:
keys:
- v1-dependencies-{{ checksum "yarn.lock" }}
- v1-dependencies-
- v4-dependencies-{{ checksum "yarn.lock" }}
- v4-dependencies-

- run: yarn install

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "yarn.lock" }}
key: v4-dependencies-{{ checksum "yarn.lock" }}

- run: yarn lint

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/chromatic-main-and-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: lts/*
- run: yarn set version berry
- name: install
run: yarn install --frozen-lockfile
run: yarn install --immutable
- uses: chromaui/action@latest
with:
# 👇 Chromatic projectToken, refer to the manage page to obtain it.
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/chromatic-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: lts/*
- run: yarn set version berry
- name: install
run: yarn install --frozen-lockfile
run: yarn install --immutable
- uses: chromaui/action@latest
with:
exitOnceUploaded: true
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/chromatic-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: lts/*
- run: yarn set version berry
- name: install
run: yarn install --frozen-lockfile
run: yarn install --immutable
- uses: chromaui/action-canary@latest
with:
exitOnceUploaded: true
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/smoke-test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: lts/*
- run: yarn set version berry
- run: yarn
- run: yarn build
- uses: ./
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/smoke-test-node-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: latest
- run: yarn set version berry
- run: yarn
- name: run chromatic via node
run: ./scripts/run-via-node.mjs
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/smoke-test-node18.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn set version berry
- run: yarn
- run: yarn build
- uses: ./
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/smoke-test-node20.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 20
- run: yarn set version berry
- run: yarn
- run: yarn build
- uses: ./
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/smoke-test-npx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: lts/*
- run: yarn set version berry
- name: install
run: yarn && git status --porcelain
- name: prep package
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/smoke-test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: lts/*
- run: yarn set version berry
- name: install
run: yarn && git status --porcelain
- name: prep package
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/smoke-test-yarn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: lts/*
- run: yarn set version berry
- run: yarn
- run: yarn build
- run: yarn chromatic --build-script-name build-test-storybook --exit-zero-on-changes --force-rebuild
Expand Down

0 comments on commit 3c02939

Please sign in to comment.