-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
67 additions
and
122 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: "Run Playwright tests" | ||
name: "Playwright Tests" | ||
|
||
on: | ||
pull_request: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: TypeScript Check | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- 'releases/*' | ||
pull_request: | ||
branches: | ||
- main | ||
- 'releases/*' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
type-check: | ||
name: Run TypeScript Check for idb-cache | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
# Step 1: Checkout the repository | ||
- uses: actions/checkout@v4 | ||
|
||
# Step 2: Setup Node.js with pnpm caching | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
cache: 'pnpm' | ||
|
||
# Step 3: Enable corepack and prepare pnpm | ||
- name: Enable Corepack and Install pnpm | ||
run: | | ||
corepack enable | ||
corepack prepare [email protected] --activate | ||
echo "pnpm version: $(pnpm --version)" | ||
# Step 4: Cache pnpm dependencies (pnpm store and node_modules) | ||
- name: Cache pnpm dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.pnpm-store | ||
node_modules | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
# Step 5: Install dependencies | ||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
# Step 6: Run TypeScript Check and Save Logs | ||
- name: Run TypeScript Check | ||
run: | | ||
mkdir -p logs | ||
pnpm --filter packages/idb-cache typescript:check > logs/typescript-errors.log 2>&1 || true | ||
# Step 7: Upload TypeScript Logs (on failure) | ||
- name: Upload TypeScript Logs | ||
if: failure() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: typescript-errors | ||
path: logs/typescript-errors.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters