From ffd24063f2c616f61953955eeab62863842f3cfe Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 14 Jan 2024 16:36:28 +0000 Subject: [PATCH 1/2] Try out bun --- .github/workflows/ci-bun.yml | 62 ++++++++++++++++++++++++++++++++++++ .github/workflows/ci.yml | 4 --- 2 files changed, 62 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/ci-bun.yml diff --git a/.github/workflows/ci-bun.yml b/.github/workflows/ci-bun.yml new file mode 100644 index 0000000000..a785377a6b --- /dev/null +++ b/.github/workflows/ci-bun.yml @@ -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 'action@github.com' + 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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 611d1709db..1cb88edb55 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,11 +3,7 @@ on: push: branches: - main - paths-ignore: - - '**.md' pull_request: - paths-ignore: - - '**.md' jobs: test: From 2ececbb0e38b53c763287a597e30b710107b6617 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 14 Jan 2024 16:38:11 +0000 Subject: [PATCH 2/2] fix running tests --- .github/workflows/ci-bun.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-bun.yml b/.github/workflows/ci-bun.yml index a785377a6b..b8711694de 100644 --- a/.github/workflows/ci-bun.yml +++ b/.github/workflows/ci-bun.yml @@ -28,7 +28,7 @@ jobs: bun run build bun run build:types - name: Test - run: bun t + run: bun run test timeout-minutes: 4 - uses: codecov/codecov-action@v3