-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: use bun and clean up package scripts * chore: add basic ci workflows
- Loading branch information
Showing
10 changed files
with
95 additions
and
16,628 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Setup project | ||
description: Prepare the project for any CI action | ||
|
||
inputs: | ||
bun-version: | ||
description: Version of Bun to install | ||
default: 1.x | ||
|
||
node-version: | ||
description: Version of Node to install | ||
default: 20.x | ||
|
||
with-webui: | ||
description: If the setup should prepare the web UI | ||
type: boolean | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: 🏗 Setup Node | ||
uses: oven-sh/setup-bun@v1 | ||
with: | ||
bun-version: ${{ inputs.bun-version }} | ||
|
||
- name: 🏗 Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ inputs.node-version }} | ||
|
||
- name: 📦 Install dependencies | ||
run: bun install | ||
shell: bash | ||
|
||
- name: 📦 Install webui dependencies | ||
if: ${{ inputs.with-webui == 'true' }} | ||
run: bun install | ||
working-directory: webui | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: review | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [opened, synchronize] | ||
push: | ||
branches: [main] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🏗 Setup repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: 🏗 Setup project | ||
uses: ./.github/actions/setup-project | ||
|
||
- name: 🚨 Lint core | ||
run: bun run lint -- --max-warnings 0 | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🏗 Setup repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: 🏗 Setup project | ||
uses: ./.github/actions/setup-project | ||
with: | ||
with-webui: true | ||
|
||
- name: 👷 Build core | ||
run: bun run build | ||
|
||
- name: 👷 Build webui | ||
run: bun run build | ||
working-directory: webui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.