Add test framework, unit tests, and CI validation workflow #3
@@ -0,0 +1,25 @@
|
||||
name: Validate
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
jdb marked this conversation as resolved
Outdated
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Bun
|
||||
|
jdb marked this conversation as resolved
jdb
commented
If we switch to the If we switch to the `bun` runner as I asked in my previous review comment, we will not need to install bun. It comes packaged in that runner.
|
||||
uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
bun-version: latest
|
||||
|
||||
- name: Install dependencies
|
||||
run: bun install
|
||||
|
||||
- name: Run tests
|
||||
run: bun test
|
||||
Reference in New Issue
Block a user
Can we use the
bunrunner? It is more lightweight thanubuntu-latestand should have everything we need.bunmaps to thedocker://oven/bun:latestimage.