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
42 changes: 12 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,46 +4,28 @@ on:
- push

jobs:
lint:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 5

- name: Setup Node.js
uses: actions/setup-node@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
node-version-file: ".tool-versions"
cache: "npm"
bun-version: 1.1.38

- name: Install dependencies
run: |
npm ci
run: bun install

- name: Lint
run: |
npm run lint
- name: Check linting
run: bun run lint

test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 5

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".tool-versions"
cache: "npm"

- name: Install dependencies
run: |
npm ci
- name: Check formatting
run: bun run format:check

- name: Test
run: |
npm run test:coverage
- name: Run tests
run: bun run test:coverage
9 changes: 5 additions & 4 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ jobs:
with:
fetch-depth: 5

- name: Setup Node.js
uses: actions/setup-node@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
node-version-file: ".tool-versions"
cache: "npm"
bun-version: 1.1.38

- uses: ArtiomTr/jest-coverage-report-action@v2
with:
package-manager: bun
Binary file added bun.lockb
Binary file not shown.
Loading
Loading