Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try out bun #3425

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .github/workflows/ci-bun.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: CI-bun
on:
push:
branches:
- main
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Biome
run: bun run biome:ci
- name: ESLint
run: bun run eslint
- name: Prettier
run: bun run prettier:check
- name: Typecheck
run: bun run typecheck
- name: Bundle
run: |
bun run build
bun run build:types
- name: Test
run: bun run test
timeout-minutes: 4
- uses: codecov/codecov-action@v3

website:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Build
run: |
bun install
bun run build:website
- name: Set up git user
if: github.event_name == 'push'
run: |
git config --global user.email '[email protected]'
git config --global user.name 'GitHub Action'
- name: Deploy gh-pages
if: github.ref == 'refs/heads/main'
run: |
git fetch origin gh-pages
git worktree add gh-pages gh-pages
cd gh-pages
git rm -r .
git checkout gh-pages -- old
mv ../dist/* .
git add .
git commit -m "gh-pages deployment" || echo "Nothing to commit"
git push -f https://adazzle:${{secrets.GITHUB_TOKEN}}@github.com/adazzle/react-data-grid.git
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ on:
push:
branches:
- main
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'

jobs:
test:
Expand Down
Loading