Skip to content

Commit

Permalink
Try out bun
Browse files Browse the repository at this point in the history
  • Loading branch information
nstepien committed Jan 14, 2024
1 parent e953d9a commit ffd2406
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 4 deletions.
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 t
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

0 comments on commit ffd2406

Please sign in to comment.