From 2f907dd061a9ef40001d70931b1d8d196607f187 Mon Sep 17 00:00:00 2001 From: ZTL-UwU Date: Thu, 21 Mar 2024 13:27:51 +0800 Subject: [PATCH] ci: add build ci --- .github/workflows/build.yml | 26 ++++++++++++++++++++++++++ .github/workflows/lint.yml | 4 +--- 2 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a343d6c --- /dev/null +++ b/.github/workflows/build.yml @@ -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/ + diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 90351db..c3a0b7f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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