Skip to content

Commit

Permalink
Update workflows to use Bun
Browse files Browse the repository at this point in the history
Updates the test and lint workflows to use the latest Bun container and run using the bun runtime.
  • Loading branch information
refringe committed Dec 22, 2024
1 parent 133e687 commit a6c2d96
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/run-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,25 @@ on:
jobs:
biome:
runs-on: ubuntu-latest
container:
image: oven/bun:latest
steps:
- name: Install Git and LFS
run: |
apt-get update
apt-get install -y git git-lfs
- uses: actions/checkout@v4
with:
lfs: false

- name: Checkout LFS
run: git lfs pull

- uses: actions/setup-node@v4
with:
node-version-file: "project/.nvmrc"
cache: "npm"
cache-dependency-path: "project/package.json"

- name: Install NPM Dependencies
run: npm install
- name: Install Dependencies
run: bun install
working-directory: ./project

- name: Run Linter
run: npm run lint
run: bun run lint
working-directory: ./project
19 changes: 10 additions & 9 deletions .github/workflows/run-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,25 @@ on:
jobs:
vitest:
runs-on: ubuntu-latest
container:
image: oven/bun:latest
steps:
- name: Install Git and LFS
run: |
apt-get update
apt-get install -y git git-lfs
- uses: actions/checkout@v4
with:
lfs: false

- name: Checkout LFS
run: git lfs pull

- uses: actions/setup-node@v4
with:
node-version-file: "project/.nvmrc"
cache: "npm"
cache-dependency-path: "project/package.json"

- name: Install NPM Dependencies
run: npm install
- name: Install Dependencies
run: bun install
working-directory: ./project

- name: Run Tests
run: npm run test
run: bun run test
working-directory: ./project

0 comments on commit a6c2d96

Please sign in to comment.