Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 10 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,39 +10,35 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup Bun
uses: oven-sh/setup-bun@v1
- name: Setup mise
uses: jdx/mise-action@v2

- name: Install dependencies
run: bun install

- name: Get Playwright version
id: playwright-version
run: echo "version=$(bun pm ls | grep '@playwright/test' | awk '{print $2}')" >> $GITHUB_OUTPUT
run: aube ci

- name: Cache Playwright browsers
uses: actions/cache@v3
id: playwright-cache
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}
key: playwright-${{ runner.os }}-${{ hashFiles('aube-lock.yaml') }}

- name: Install Playwright Browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: bunx playwright install --with-deps chromium firefox webkit
run: aube exec playwright install --with-deps chromium firefox webkit

- name: Install Playwright System Dependencies
if: steps.playwright-cache.outputs.cache-hit == 'true'
run: bunx playwright install-deps chromium firefox webkit
run: aube exec playwright install-deps chromium firefox webkit

- name: Build
run: bun run build
run: aube run build

- name: Run Unit Tests
run: bun run test
run: aube run test

- name: Run Browser Tests
run: bun run test:browser
run: aube run test:browser

- name: Generate Coverage Report
run: bun run test --coverage
run: aube run test --coverage
1 change: 0 additions & 1 deletion .node-version

This file was deleted.

6 changes: 3 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- I’m using bun to manage packages.
- I’m using Aube to manage packages and Node to run scripts.
- Don’t create a summary document.
- Running all the tests with `bun run test` is cheap, so do it all the time. Don’t do too much before running tests. You can also run browser tests with `bun run test:browser`.
- Try to maintain 100% test coverage. Use `bun run test --coverage`.
- Running all the tests with `aube run test` is cheap, so do it all the time. Don’t do too much before running tests. You can also run browser tests with `aube run test:browser`.
- Try to maintain 100% test coverage. Use `aube run test --coverage`.
- Make sure you leave things in a good state. No warnings. No type errors.
- We use tabs for indentation and sometimes additional spaces for alignment
- When writing new tests, put them under `test/new` and use `test` instead of `it`. Try to keep all the setup in the test itself. If you need to share setup between multiple steps, make a function that each test calls.
Expand Down
Loading
Loading