Skip to content

Commit 0b508b9

Browse files
committed
Migrate to Aube and Node
1 parent 3224fe0 commit 0b508b9

10 files changed

Lines changed: 1374 additions & 415 deletions

File tree

.github/workflows/tests.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,39 +10,35 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v3
1212

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

1616
- name: Install dependencies
17-
run: bun install
18-
19-
- name: Get Playwright version
20-
id: playwright-version
21-
run: echo "version=$(bun pm ls | grep '@playwright/test' | awk '{print $2}')" >> $GITHUB_OUTPUT
17+
run: aube ci
2218

2319
- name: Cache Playwright browsers
2420
uses: actions/cache@v3
2521
id: playwright-cache
2622
with:
2723
path: ~/.cache/ms-playwright
28-
key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}
24+
key: playwright-${{ runner.os }}-${{ hashFiles('aube-lock.yaml') }}
2925

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

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

3834
- name: Build
39-
run: bun run build
35+
run: aube run build
4036

4137
- name: Run Unit Tests
42-
run: bun run test
38+
run: aube run test
4339

4440
- name: Run Browser Tests
45-
run: bun run test:browser
41+
run: aube run test:browser
4642

4743
- name: Generate Coverage Report
48-
run: bun run test --coverage
44+
run: aube run test --coverage

.node-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

AGENTS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
- I’m using bun to manage packages.
1+
- I’m using Aube to manage packages and Node to run scripts.
22
- Don’t create a summary document.
3-
- 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`.
4-
- Try to maintain 100% test coverage. Use `bun run test --coverage`.
3+
- 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`.
4+
- Try to maintain 100% test coverage. Use `aube run test --coverage`.
55
- Make sure you leave things in a good state. No warnings. No type errors.
66
- We use tabs for indentation and sometimes additional spaces for alignment
77
- 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.

0 commit comments

Comments
 (0)