Skip to content

Commit

Permalink
fix: CI (#3)
Browse files Browse the repository at this point in the history
* add bun lockfile

* update github actions

---------

Co-authored-by: Ky Lee <ky.lee@coinbase.com>
  • Loading branch information
kyhyco and ky-lee-cb authored Aug 5, 2024
1 parent 91c2e8b commit 302b616
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 36 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Setup Bun
uses: oven-sh/setup-bun@v2

- name: Template Install dependencies
run: npm install
run: bun install

- name: Template Test Build
# When fails, please check your build
run: |
npm run build
bun run build
15 changes: 6 additions & 9 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Template Check
on:
push:
branches: ['main']
branches: ["main"]
pull_request:
branches: ['main']
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -15,14 +15,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Setup Bun
uses: oven-sh/setup-bun@v2

- name: Template Install dependencies
run: npm install
run: bun install

- name: Template Check
run: npm run ci:check
run: bun run ci:check
15 changes: 6 additions & 9 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Template Format
on:
push:
branches: ['main']
branches: ["main"]
pull_request:
branches: ['main']
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -15,14 +15,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Setup Bun
uses: oven-sh/setup-bun@v2

- name: Template Install dependencies
run: npm install
run: bun install

- name: Template Format
run: npm run ci:format
run: bun run ci:format
15 changes: 6 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Template Lint
on:
push:
branches: ['main']
branches: ["main"]
pull_request:
branches: ['main']
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -15,14 +15,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Setup Bun
uses: oven-sh/setup-bun@v2

- name: Template Install dependencies
run: npm install
run: bun install

- name: Template Lint
run: npm run ci:lint
run: bun run ci:lint
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/node_modules
/.pnp
.pnp.js
bun.lockb

# testing
/coverage
Expand Down Expand Up @@ -33,4 +32,4 @@ yarn-error.log*
*.tsbuildinfo
next-env.d.ts

.env
.env
Binary file added bun.lockb
Binary file not shown.

0 comments on commit 302b616

Please sign in to comment.