Skip to content

Commit

Permalink
chore: update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
resir014 committed May 6, 2024
1 parent e8ad1b9 commit 22b0268
Show file tree
Hide file tree
Showing 3 changed files with 865 additions and 1,010 deletions.
57 changes: 30 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,36 +11,39 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn install --frozen-lockfile
- uses: actions/cache@v1
id: cache-build
- name: Checkout
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
path: '.'
key: ${{ github.sha }}
node-version: 20

validate:
name: Validate
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/cache@v1
id: restore-build
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: '.'
key: ${{ github.sha }}
- run: yarn validate
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install

- name: Run typecheck
run: pnpm run validate
env:
CI: true

test:
name: Test
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/cache@v1
id: restore-build
with:
path: '.'
key: ${{ github.sha }}
- run: yarn test
- name: Run tests
run: pnpm run test
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@
},
"dependencies": {
"@capsizecss/core": "^3.1.1",
"@capsizecss/metrics": "^1.2.0",
"@fontsource/jetbrains-mono": "^5.0.3",
"@headlessui/react": "^1.7.15",
"@notionhq/client": "^2.2.6",
"@capsizecss/metrics": "^1.3.0",
"@fontsource/jetbrains-mono": "^5.0.20",
"@headlessui/react": "^1.7.19",
"@notionhq/client": "^2.2.15",
"@resir014/lerp": "^0.1.1",
"@tanstack/react-query": "^4.29.19",
"@trpc/client": "^10.33.0",
"@trpc/next": "^10.33.0",
"@trpc/react-query": "^10.33.0",
"@trpc/server": "^10.33.0",
"@tanstack/react-query": "^4.36.1",
"@trpc/client": "^10.45.2",
"@trpc/next": "^10.45.2",
"@trpc/react-query": "^10.45.2",
"@trpc/server": "^10.45.2",
"clsx": "^2.1.1",
"date-fns": "^2.30.0",
"dequal": "^2.0.3",
Expand All @@ -55,21 +55,21 @@
"typeface-inter": "^3.18.1",
"webfontloader": "^1.6.28",
"zod": "^3.23.6",
"zustand": "^4.3.8"
"zustand": "^4.5.2"
},
"devDependencies": {
"@babel/eslint-plugin": "^7.18.10",
"@babel/preset-react": "^7.18.6",
"@resir014/tailwind-preset-chungking": "^0.1.4-canary.1",
"@testing-library/jest-dom": "^5.16.5",
"@babel/eslint-plugin": "^7.24.5",
"@babel/preset-react": "^7.24.1",
"@resir014/tailwind-preset-chungking": "0.1.4-canary.7",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@types/node": "^17.0.24",
"@types/node": "^17.0.45",
"@types/react": "^18.3.1",
"@types/react-dom": "^18.3.0",
"@types/socket.io-client": "^1.4.34",
"@types/socket.io-client": "^1.4.36",
"@types/webfontloader": "^1.6.38",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"@typescript-eslint/parser": "^5.60.1",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"autoprefixer": "^10.4.19",
"eslint": "^9.2.0",
"eslint-config-kentcdodds": "^21.0.0",
Expand All @@ -87,7 +87,7 @@
"prettier": "^3.2.5",
"react-intersection-observer": "^9.10.2",
"react-is": "^18.3.1",
"stylelint": "^15.10.1",
"stylelint": "^15.11.0",
"stylelint-config-recommended": "^12.0.0",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.5"
Expand Down
Loading

0 comments on commit 22b0268

Please sign in to comment.