Skip to content

Commit

Permalink
ci: add build ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ZTL-UwU committed Mar 21, 2024
1 parent a220f46 commit 2f907dd
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: ESLint Check

on: [workflow_dispatch, push]

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- uses: oven-sh/setup-bun@v1

- name: Install dependencies
run: bun install

- name: Build
run: bun run build

- uses: actions/upload-artifact@v4
with:
name: build-files
path: |
.output/
4 changes: 1 addition & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ jobs:
uses: actions/checkout@v3

- uses: oven-sh/setup-bun@v1
with:
bun-version: 1.0.18

- name: Install dependencies
run: bun install

- name: Run Lint
run: bun run eslint . --no-fix
run: NITRO_PRESET="bun" bun run eslint . --no-fix

0 comments on commit 2f907dd

Please sign in to comment.