Skip to content

Commit

Permalink
use bun for CI and dev
Browse files Browse the repository at this point in the history
  • Loading branch information
xcodeassociated committed Oct 11, 2024
1 parent 0e7f396 commit 753cffb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9,891 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,33 @@
name: NodeJS with Webpack
name: Bun Build with Docker

on:
push:
branches: ['main', 'release/*']
branches: ['**']
pull_request:
branches: ['**']

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: oven-sh/setup-bun@v2

- name: Install dependencies
run: npm install
run: bun install --frozen-lockfile

- name: Run the tests
run: npm test
run: bun run test

- name: Build
run: npm run build
run: bun run build
env:
CI: false

docker:

runs-on: ubuntu-latest
needs: build

steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -56,4 +46,4 @@ jobs:
context: .
push: true
platforms: linux/amd64, linux/arm64
tags: xcodeassociated/softeno-nextjs-website:latest
tags: xcodeassociated/nextjs-template:latest
Binary file added bun.lockb
Binary file not shown.
Loading

0 comments on commit 753cffb

Please sign in to comment.