Skip to content

Commit

Permalink
Beta 3 (#1)
Browse files Browse the repository at this point in the history
beta 3
  • Loading branch information
daniel-nagy authored Dec 27, 2023
1 parent 1b3edb8 commit 2e810a0
Show file tree
Hide file tree
Showing 140 changed files with 12,530 additions and 6,249 deletions.
32 changes: 0 additions & 32 deletions .github/actions/create-artifact/action.yaml

This file was deleted.

46 changes: 0 additions & 46 deletions .github/actions/create-artifact/main.mjs

This file was deleted.

14 changes: 7 additions & 7 deletions .github/actions/install-dependencies/action.yaml
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 .github/actions/install-playwright-dependencies/action.yaml
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
12 changes: 0 additions & 12 deletions .github/actions/jest-coverage-calculator/action.yaml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/actions/jest-coverage-calculator/main.mjs

This file was deleted.

60 changes: 0 additions & 60 deletions .github/actions/jest/action.yaml

This file was deleted.

57 changes: 57 additions & 0 deletions .github/workflows/ci-browser.yaml
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
53 changes: 53 additions & 0 deletions .github/workflows/ci-core.yaml
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
52 changes: 0 additions & 52 deletions .github/workflows/ci.yaml

This file was deleted.

Loading

0 comments on commit 2e810a0

Please sign in to comment.