-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
140 changed files
with
12,530 additions
and
6,249 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,24 +1,24 @@ | ||
name: Install Workspace Dependencies | ||
description: Installs all workspace dependencies. | ||
name: Install Dependencies | ||
description: Install all dependencies. | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install asdf | ||
uses: asdf-vm/actions/setup@v1 | ||
uses: asdf-vm/actions/setup@v2 | ||
- name: Hydrate asdf cache | ||
id: hydrate-asdf-cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.ASDF_DIR }} | ||
key: ${{ runner.os }}-${{ hashFiles('.tool-versions') }} | ||
- name: Install system dependencies | ||
if: steps.hydrate-asdf-cache.outputs.cache-hit != 'true' | ||
uses: asdf-vm/actions/install@v1 | ||
- name: Hydrate node modules cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: "**/node_modules" | ||
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | ||
key: ${{ runner.os }}-${{ hashFiles('**/bun.lockb') }} | ||
- name: Install node modules | ||
run: yarn install --frozen-lockfile | ||
run: bun install --frozen-lockfile | ||
shell: bash |
28 changes: 28 additions & 0 deletions
28
.github/actions/install-playwright-dependencies/action.yaml
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: Install Playwright Dependencies | ||
description: Install playwright dependencies and cache browser binaries. | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Get playwright version | ||
id: playwright-info | ||
run: | | ||
version=$( | ||
npm ls @playwright/test --json \ | ||
| jq --raw-output '.dependencies["@playwright/test"].version' | ||
) | ||
echo "version=$version" >> $GITHUB_OUTPUT | ||
shell: bash | ||
- name: Cache playwright browser binaries | ||
uses: actions/cache@v3 | ||
id: playwright-cache | ||
with: | ||
path: ~/.cache/ms-playwright | ||
key: ${{ runner.os }}-playwright-${{ steps.playwright-info.outputs.version }} | ||
- name: Install playwright browsers | ||
if: steps.playwright-cache.outputs.cache-hit != 'true' | ||
run: npx playwright install --with-deps | ||
shell: bash | ||
- name: Install playwright system dependencies | ||
if: steps.playwright-cache.outputs.cache-hit == 'true' | ||
run: npx playwright install-deps | ||
shell: bash |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: CI | ||
on: | ||
pull_request: | ||
paths: | ||
- packages/browser/** | ||
- packages/core/** | ||
paths-ignore: | ||
- packages/**/.gitignore | ||
- packages/**/README.md | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- packages/browser/** | ||
- packages/core/** | ||
paths-ignore: | ||
- packages/**/.gitignore | ||
- packages/**/README.md | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout commit | ||
uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
uses: ./.github/actions/install-dependencies | ||
- name: Build package | ||
run: bun --cwd packages/browser build | ||
eslint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout commit | ||
uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
uses: ./.github/actions/install-dependencies | ||
- name: Check code style | ||
run: bun --cwd packages/browser eslint | ||
prettier: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout commit | ||
uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
uses: ./.github/actions/install-dependencies | ||
- name: Check code style | ||
run: bun --cwd packages/browser prettier | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout commit | ||
uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
uses: ./.github/actions/install-dependencies | ||
- name: Install playwright dependencies | ||
uses: ./.github/actions/install-playwright-dependencies | ||
- name: Run tests | ||
run: bun --cwd packages/browser 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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: CI | ||
on: | ||
pull_request: | ||
paths: | ||
- packages/core/** | ||
paths-ignore: | ||
- packages/core/.gitignore | ||
- packages/core/README.md | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- packages/core/** | ||
paths-ignore: | ||
- packages/core/.gitignore | ||
- packages/core/README.md | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout commit | ||
uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
uses: ./.github/actions/install-dependencies | ||
- name: Build package | ||
run: bun --cwd packages/core build | ||
eslint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout commit | ||
uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
uses: ./.github/actions/install-dependencies | ||
- name: Check code style | ||
run: bun --cwd packages/core eslint | ||
prettier: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout commit | ||
uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
uses: ./.github/actions/install-dependencies | ||
- name: Check code style | ||
run: bun --cwd packages/core prettier | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout commit | ||
uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
uses: ./.github/actions/install-dependencies | ||
- name: Run tests | ||
run: bun --cwd packages/core test |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.