diff --git a/.github/workflows/frontend-bundle-analysis.yml b/.github/workflows/frontend-bundle-analysis.yml index 76437eae..f85517c3 100644 --- a/.github/workflows/frontend-bundle-analysis.yml +++ b/.github/workflows/frontend-bundle-analysis.yml @@ -3,7 +3,9 @@ name: Frontend Bundle Analysis on: pull_request: push: - branches: [v3] + branches: [ + v3 + ] workflow_dispatch: defaults: @@ -45,20 +47,7 @@ jobs: - name: Install Dependencies run: pnpm install - - name: Restore Next.js Build - uses: actions/cache@v3 - id: restore-build-cache - env: - cache-name: cache-next-build - with: - # if you use a custom build directory, replace all instances of `.next` in this file with your build directory - # ex: if your app builds to `dist`, replace `.next` with `dist` - path: packages/frontend/.next/cache - # change this if you prefer a more strict cache - key: ${{ runner.os }}-build-${{ env.cache-name }} - - name: Build Next.js App - # change this if your site requires a custom build command run: pnpm run build:frontend # Here's the first place where next-bundle-analysis' own script is used diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml index db0ff76a..ec100376 100644 --- a/.github/workflows/test-suite.yml +++ b/.github/workflows/test-suite.yml @@ -2,25 +2,27 @@ name: Test Suite on: push: - branches: ["v3","v3-dev"] + branches: [ + "v3", + "v3-dev" + ] pull_request: - types: [opened, synchronize] + types: [ + opened, + synchronize + ] jobs: test: name: Build and Test timeout-minutes: 15 runs-on: ubuntu-latest - # To use Remote Caching, uncomment the next lines and follow the steps below. env: TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} TURBO_TEAM: ${{ vars.TURBO_TEAM }} steps: - - name: Check out code - uses: actions/checkout@v3 - with: - fetch-depth: 2 + - uses: actions/checkout@v4 - name: Cache turbo build setup uses: actions/cache@v3 @@ -30,12 +32,10 @@ jobs: restore-keys: | ${{ runner.os }}-turbo- - - uses: pnpm/action-setup@v2.0.1 - with: - version: 6.32.2 + - uses: pnpm/action-setup@v2.4.0 - - name: Setup Node.js environment - uses: actions/setup-node@v3 + - name: Install Node.js + uses: actions/setup-node@v4 with: node-version: 18 cache: 'pnpm' diff --git a/packages/frontend/package.json b/packages/frontend/package.json index 2dede80f..c6d44e78 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -37,7 +37,7 @@ "remark-math": "^5.1.1", "sass": "^1.59.2", "shared": "workspace:*", - "swr": "^2.1.3", + "swr": "^2.2.4", "zustand": "^4.3.6" }, "devDependencies": { @@ -50,4 +50,4 @@ "typescript": "*" }, "packageManager": "pnpm@8.6.3" -} \ No newline at end of file +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bae2c59d..62f60552 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -154,7 +154,7 @@ importers: version: 8.8.0(eslint@8.42.0) eslint-plugin-prettier: specifier: ^4.2.1 - version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.42.0)(prettier@3.1.0) + version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.42.0)(prettier@3.1.1) eslint-plugin-simple-import-sort: specifier: ^10.0.0 version: 10.0.0(eslint@8.42.0) @@ -261,8 +261,8 @@ importers: specifier: workspace:* version: link:../shared swr: - specifier: ^2.1.3 - version: 2.1.3(react@18.2.0) + specifier: ^2.2.4 + version: 2.2.4(react@18.2.0) zustand: specifier: ^4.3.6 version: 4.3.6(react@18.2.0) @@ -6339,7 +6339,7 @@ packages: semver: 6.3.1 dev: false - /eslint-plugin-prettier@4.2.1(eslint-config-prettier@8.8.0)(eslint@8.42.0)(prettier@3.1.0): + /eslint-plugin-prettier@4.2.1(eslint-config-prettier@8.8.0)(eslint@8.42.0)(prettier@3.1.1): resolution: {integrity: sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==} engines: {node: '>=12.0.0'} peerDependencies: @@ -6352,7 +6352,7 @@ packages: dependencies: eslint: 8.42.0 eslint-config-prettier: 8.8.0(eslint@8.42.0) - prettier: 3.1.0 + prettier: 3.1.1 prettier-linter-helpers: 1.0.0 dev: true @@ -9594,8 +9594,8 @@ packages: hasBin: true dev: true - /prettier@3.1.0: - resolution: {integrity: sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==} + /prettier@3.1.1: + resolution: {integrity: sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==} engines: {node: '>=14'} hasBin: true dev: true @@ -10708,11 +10708,12 @@ packages: picocolors: 1.0.0 dev: false - /swr@2.1.3(react@18.2.0): - resolution: {integrity: sha512-g3ApxIM4Fjbd6vvEAlW60hJlKcYxHb+wtehogTygrh6Jsw7wNagv9m4Oj5Gq6zvvZw0tcyhVGL9L0oISvl3sUw==} + /swr@2.2.4(react@18.2.0): + resolution: {integrity: sha512-njiZ/4RiIhoOlAaLYDqwz5qH/KZXVilRLvomrx83HjzCWTfa+InyfAjv05PSFxnmLzZkNO9ZfvgoqzAaEI4sGQ==} peerDependencies: react: ^16.11.0 || ^17.0.0 || ^18.0.0 dependencies: + client-only: 0.0.1 react: 18.2.0 use-sync-external-store: 1.2.0(react@18.2.0) dev: false