-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from supabase-community/refactor/web-standard-…
…apis Web standard APIs (cross-platform support)
- Loading branch information
Showing
58 changed files
with
23,076 additions
and
949 deletions.
There are no files selected for viewing
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,32 @@ | ||
name: 'Setup and Cache Playwright' | ||
description: 'Installs playwright browsers and caches them.' | ||
|
||
inputs: | ||
version: | ||
description: 'The version of playwright' | ||
required: true | ||
|
||
outputs: | ||
cache-hit: | ||
description: 'Whether the cache was hit or not' | ||
value: ${{ steps.playwright-cache.outputs.cache-hit }} | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Cache playwright browsers | ||
id: playwright-cache | ||
uses: actions/cache@v4 | ||
with: | ||
key: playwright-browsers-${{ runner.os }}-${{ inputs.version }} | ||
path: ~/.cache/ms-playwright | ||
|
||
- name: Install playwright browsers if they don't exist | ||
shell: bash | ||
run: npx playwright install --with-deps | ||
if: steps.playwright-cache.outputs.cache-hit != 'true' | ||
|
||
- name: Install playwright dependencies if binaries exist | ||
shell: bash | ||
run: npx playwright install-deps | ||
if: steps.playwright-cache.outputs.cache-hit == 'true' |
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,28 @@ | ||
name: Tests | ||
on: | ||
push: | ||
branches: [main, next] | ||
pull_request: | ||
branches: [main, next] | ||
jobs: | ||
test: | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts/* | ||
cache: 'npm' | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Build libs | ||
run: npm run build | ||
- name: Get playwright version | ||
run: echo "PLAYWRIGHT_VERSION=$(npm ls @playwright/test | grep @playwright | sed 's/.*@//')" >> $GITHUB_ENV | ||
- name: Setup playwright | ||
uses: ./.github/actions/setup-playwright | ||
with: | ||
version: ${{ env.PLAYWRIGHT_VERSION }} | ||
- name: Tests | ||
run: npm run test |
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 |
---|---|---|
|
@@ -6,3 +6,7 @@ dbs/ | |
tsconfig.tsbuildinfo | ||
.env | ||
.DS_Store | ||
/test-results/ | ||
/playwright-report/ | ||
/blob-report/ | ||
/playwright/.cache/ |
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 @@ | ||
@jsr:registry=https://npm.jsr.io |
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
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
Oops, something went wrong.