Skip to content

Commit

Permalink
chore: delete unless debug code and fix ci cache logic (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoushaw authored Sep 2, 2024
1 parent 704a0b8 commit 1c6237a
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 191 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,14 @@ jobs:
with:
node-version: '18'

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
- name: Cache Puppeteer dependencies
uses: actions/cache@v3
id: cache-puppeteer
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
path: ~/.cache/puppeteer
key: ${{ runner.os }}-puppeteer-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
${{ runner.os }}-puppeteer-
- name: Install dependencies
run: pnpm install --frozen-lockfile
Expand Down
3 changes: 2 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"**/doc_build",
"*-dump.json",
"script_get_all_texts.tmp.js",
"**/playwright-report/**"
"**/playwright-report/**",
"**/todo-report.spec.ts-snapshots/**"
]
},
"javascript": {
Expand Down
2 changes: 1 addition & 1 deletion packages/midscene/modern.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default defineConfig({
'ai-model': 'src/ai-model/index.ts',
},
// input: ['src/utils.ts', 'src/index.ts', 'src/image/index.ts'],
externals: ['node:buffer', 'sharp'],
externals: ['node:buffer'],
target: 'es2017',
},
});
1 change: 0 additions & 1 deletion packages/web-integration/modern.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ export default defineConfig({
'playwright-report': './src/playwright/reporter/index.ts',
},
target: 'es2017',
externals: ['sharp'],
},
});
143 changes: 0 additions & 143 deletions packages/web-integration/src/debug/img/index.ts

This file was deleted.

33 changes: 0 additions & 33 deletions packages/web-integration/src/debug/img/util.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
"Action / KeyboardPress"
]
}
]
]

0 comments on commit 1c6237a

Please sign in to comment.