From a6c2d966c646311aa7bc22e331c73eac7d5ec180 Mon Sep 17 00:00:00 2001 From: Refringe Date: Sat, 21 Dec 2024 19:59:00 -0500 Subject: [PATCH] Update workflows to use Bun Updates the test and lint workflows to use the latest Bun container and run using the bun runtime. --- .github/workflows/run-lint.yaml | 19 ++++++++++--------- .github/workflows/run-test.yaml | 19 ++++++++++--------- 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/.github/workflows/run-lint.yaml b/.github/workflows/run-lint.yaml index c78064b4b..921127c6b 100644 --- a/.github/workflows/run-lint.yaml +++ b/.github/workflows/run-lint.yaml @@ -9,7 +9,14 @@ 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 @@ -17,16 +24,10 @@ jobs: - 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 diff --git a/.github/workflows/run-test.yaml b/.github/workflows/run-test.yaml index bb8de899d..6d5548c12 100644 --- a/.github/workflows/run-test.yaml +++ b/.github/workflows/run-test.yaml @@ -9,7 +9,14 @@ 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 @@ -17,16 +24,10 @@ jobs: - 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