jbilcke-hf HF staff commited on
Commit
d3a0d74
1 Parent(s): 54cc2dc
.github/workflows/tests.yml CHANGED
@@ -17,11 +17,19 @@ jobs:
17
  # the day we use a monorepo we should do this:
18
  # cache-dependency-path: subdir/package-lock.json
19
  # see https://github.com/actions/setup-node#caching-global-packages-data
20
- - name: Install dependencies
21
- run: npm ci --force
22
- - name: Install Playwright Browsers
23
- run: npx playwright install --with-deps
24
- - uses: actions/cache@v4
 
 
 
 
 
 
 
 
25
  with:
26
  # See here for caching with `yarn` https://github.com/actions/cache/blob/main/examples.md#node---yarn or you can leverage caching with actions/setup-node https://github.com/actions/setup-node
27
  path: |
@@ -31,7 +39,15 @@ jobs:
31
  key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
32
  # If source files changed but packages didn't, rebuild from a prior cache.
33
  restore-keys: |
34
- ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
 
 
 
 
 
 
 
 
35
  - name: Run build
36
  run: npm run build:ci
37
  - name: Run unit tests
 
17
  # the day we use a monorepo we should do this:
18
  # cache-dependency-path: subdir/package-lock.json
19
  # see https://github.com/actions/setup-node#caching-global-packages-data
20
+
21
+ - name: Get installed Playwright version
22
+ id: playwright-version
23
+ run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package-lock.json').dependencies['@playwright/test'].version)")" >> $GITHUB_ENV
24
+ - name: Cache playwright binaries
25
+ uses: actions/cache@v4
26
+ id: playwright-cache
27
+ with:
28
+ path: |
29
+ ~/.cache/ms-playwright
30
+ key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}
31
+ - name: Cache NextJS dependencies
32
+ uses: actions/cache@v4
33
  with:
34
  # See here for caching with `yarn` https://github.com/actions/cache/blob/main/examples.md#node---yarn or you can leverage caching with actions/setup-node https://github.com/actions/setup-node
35
  path: |
 
39
  key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
40
  # If source files changed but packages didn't, rebuild from a prior cache.
41
  restore-keys: |
42
+ ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
43
+ - name: Install dependencies
44
+ run: npm ci
45
+ - name: Install Playwright Browsers
46
+ run: npx playwright install --with-deps
47
+ if: steps.playwright-cache.outputs.cache-hit != 'true'
48
+ #- name: Install Playwright Browsers
49
+ # run: npx playwright install-deps
50
+ # if: steps.playwright-cache.outputs.cache-hit != 'true'
51
  - name: Run build
52
  run: npm run build:ci
53
  - name: Run unit tests
src/services/ui/getDefaultUIState.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { SettingsCategory, UIState } from '@aitube/clapper-services'
2
 
3
  export function getDefaultUIState(): UIState {
4
  const state: UIState = {
@@ -14,6 +14,7 @@ export function getDefaultUIState(): UIState {
14
  showFPS: false,
15
  followCursor: false,
16
  editorFontSize: 12,
 
17
  }
18
 
19
  return state
 
1
+ import { ProjectCreationWizardStep, SettingsCategory, UIState } from '@aitube/clapper-services'
2
 
3
  export function getDefaultUIState(): UIState {
4
  const state: UIState = {
 
14
  showFPS: false,
15
  followCursor: false,
16
  editorFontSize: 12,
17
+ projectCreationWizardStep: ProjectCreationWizardStep.NONE,
18
  }
19
 
20
  return state