Skip to content

Commit 843d641

Browse files
committed
Add CI
1 parent 86d468b commit 843d641

File tree

6 files changed

+39
-2
lines changed

6 files changed

+39
-2
lines changed

.codesandbox/ci.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"installCommand": "codesandbox-ci",
3+
"buildCommand": "build",
4+
"sandboxes": ["/example"],
5+
"node": "18"
6+
}

.codesandbox/ci.sh

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env bash
2+
3+
# CodeSandbox CI doesn't have the `alias` or `source` commands available,
4+
# so we can't use the line below (the preferred installation method).
5+
# curl -fsSL https://bun.sh/install | bash
6+
7+
# We can use an npm global install, but we have to override the
8+
# npm_config_user_agent environment variable. Otherwise, Bun throws
9+
# an error about not being compatible with Yarn because it sees Yarn's
10+
# user agent string since CodeSandbox always runs `yarn run ...`.
11+
# See https://github.com/oven-sh/bun/issues/2530.
12+
npm_config_user_agent="npm/? node/?" npm install --global bun
13+
# Use this to pin Bun version:
14+
# npm_config_user_agent="npm/? node/?" npm install --global [email protected]
15+
16+
# Now we can get on with business...
17+
bun install --frozen-lockfile

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: [jakeboone02]

.github/workflows/main.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: CI
2+
on: [push, pull_request, workflow_dispatch]
3+
4+
jobs:
5+
build:
6+
name: Build
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: oven-sh/setup-bun@v1
11+
- run: bun install --frozen-lockfile
12+
- run: bun --bun run build

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Official [react-querybuilder](https://npmjs.com/package/react-querybuilder) comp
66
>
77
> This package is only compatible with Chakra UI **version 2**.
88
>
9-
> For Chakra UI version 3 compatibility, use [`@react-querybuilder/chakra`](https://npmjs.com/package/@react-querybuilder/chakra).
9+
> For Chakra UI version 3 compatibility, use [`@react-querybuilder/chakra`](https://npmjs.com/package/@react-querybuilder/chakra) >= 8.
1010
1111
- [Demo (using latest Chakra UI)](https://react-querybuilder.js.org/demo/chakra)
1212
- [Full documentation](https://react-querybuilder.js.org/)

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
"typecheck:watch": "tsc --noEmit --watch",
5252
"pretty-print": "prettier --config prettier.config.mjs --write '*.*' './src/**' './dev/**' './example/**'",
5353
"pretty-check": "prettier --config prettier.config.mjs --check '*.*' './src/**' './dev/**' './example/**'",
54-
"are-the-types-wrong": "attw --format table-flipped --pack ."
54+
"are-the-types-wrong": "attw --format table-flipped --pack .",
55+
"codesandbox-ci": "bash .codesandbox/ci.sh"
5556
},
5657
"devDependencies": {
5758
"@arethetypeswrong/cli": "^0.16.4",

0 commit comments

Comments
 (0)