Skip to content

Commit

Permalink
feat: migrate to bun (#62)
Browse files Browse the repository at this point in the history
* feat: migrate to bun

* chore: update workflows

* fix: lint
  • Loading branch information
Michael-Liendo authored Sep 16, 2023
1 parent 183312e commit b61cde8
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3,218 deletions.
50 changes: 28 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,42 @@ on:

jobs:
lint:
runs-on: ubuntu-20.04
name: Lint Check
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
- name: Checkout Source
uses: actions/checkout@v3

- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
cache: 'npm'
node-version: '16'
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
bun-version: latest

- name: Install Dependencies
run: bun i

- name: Run Lint Check
run: bun run lint

build:
runs-on: ubuntu-20.04
name: Build Check
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
- name: Checkout Source
uses: actions/checkout@v3

- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
cache: 'npm'
node-version: '16'
- name: Install dependencies
run: npm ci
- name: Build
bun-version: latest

- name: Install Dependencies
run: bun i

- name: Build Check
env:
NOTION_ACCESS_TOKEN: ${{ secrets.NOTION_ACCESS_TOKEN }}
NOTION_NOTES_DATABASE_ID_ES: ${{ secrets.NOTION_NOTES_DATABASE_ID_ES }}
NOTION_NOTES_DATABASE_ID_EN: ${{ secrets.NOTION_NOTES_DATABASE_ID_EN }}
NOTION_PROJECTS_DATABASE_ID: ${{ secrets.NOTION_PROJECTS_DATABASE_ID }}
run: npm run build
run: bun run build
Binary file added bun.lockb
Binary file not shown.
Loading

0 comments on commit b61cde8

Please sign in to comment.