Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 0 additions & 92 deletions .circleci/config.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
node_modules
package.json
yarn.lock
pnpm-lock.yaml
.next
.github
bin
Expand Down
30 changes: 9 additions & 21 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# .github/workflows/chromatic.yml

# Workflow name
name: ci
name: Chromatic

# Event for the workflow
on: push
Expand All @@ -17,32 +17,20 @@ jobs:
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: nvm
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV

- name: Use Node
uses: actions/setup-node@v1
with:
always-auth: true
registry-url: https://registry.npmjs.org
node-version: '${{ steps.nvm.outputs.NVMRC }}'

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Use cached node_modules
uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
uses: actions/setup-node@v5
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'

- name: Install dependencies
run: yarn install --frozen-lockfile --non-interactive
run: pnpm install --frozen-lockfile

- name: Publish to Chromatic
uses: chromaui/action@v1
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
task: [lint, test]
steps:
- name: Checkout
uses: actions/checkout@v5

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Run lint
if: matrix.task == 'lint'
run: pnpm lint:ci

- name: Run tests
if: matrix.task == 'test'
run: pnpm test:ci

- name: Upload coverage artifact
if: matrix.task == 'test' && github.event_name == 'pull_request'
uses: actions/upload-artifact@v4
with:
name: vitest-coverage
path: vitest-coverage
10 changes: 6 additions & 4 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,20 @@ jobs:
pull-requests: write
steps:
- uses: actions/checkout@v5
- name: Install pnpm
uses: pnpm/action-setup@v4
- uses: actions/setup-node@v5
with:
node-version-file: ".nvmrc"
cache: "yarn"
cache: "pnpm"
- name: Install dependencies
run: yarn install --frozen-lockfile
run: pnpm install --frozen-lockfile
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
run: pnpm playwright install --with-deps
- name: Run Playwright tests
env:
AIRTABLE_PAT: ${{ secrets.AIRTABLE_PAT }}
run: yarn test:e2e:headless
run: pnpm test:e2e:headless
- uses: actions/upload-artifact@v4
if: failure()
id: artifact-upload
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/report_coverage.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Report Coverage
name: Report Coverage

on:
workflow_run:
workflows: [Upload Coverage]
workflows: ["CI"]
types: [completed]

jobs:
Expand All @@ -18,6 +18,7 @@ jobs:
- name: Download Coverage Artifact
uses: actions/download-artifact@v4
with:
name: vitest-coverage
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}

Expand Down
54 changes: 0 additions & 54 deletions .github/workflows/upload_coverage.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# Runtime data
pids
Expand Down
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm lint-staged
1 change: 1 addition & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm test:changes
6 changes: 0 additions & 6 deletions .huskyrc

This file was deleted.

12 changes: 6 additions & 6 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ queue_rules:
- '#changes-requested-reviews-by=0'
- 'status-success=Vercel – operation-code'
- 'status-success=Vercel – storybook'
- 'status-success=ci/circleci: lint'
- 'status-success=ci/circleci: unit_tests'
- 'status-success=cypress: all tests'
- 'status-success=CI / lint'
- 'status-success=CI / unit_tests'
- 'status-success=Playwright Tests / test'
- status-success=codeclimate/diff-coverage
- status-success=codeclimate/total-coverage
merge_conditions:
- 'status-success=Vercel – operation-code'
- 'status-success=Vercel – storybook'
- 'status-success=ci/circleci: lint'
- 'status-success=ci/circleci: unit_tests'
- 'status-success=cypress: all tests'
- 'status-success=CI / lint'
- 'status-success=CI / unit_tests'
- 'status-success=Playwright Tests / test'
- status-success=codeclimate/diff-coverage
- status-success=codeclimate/total-coverage
merge_method: rebase
Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
node_modules
package.json
yarn.lock
pnpm-lock.yaml
.babelrc
**/.babelrc
.next
Expand Down
Loading
Loading