From d45dd5b8b5c2ae77f8ab5c0019824a9168df29e9 Mon Sep 17 00:00:00 2001 From: Angelillo15 Date: Mon, 26 Feb 2024 21:54:38 +0100 Subject: [PATCH 1/4] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a4c18c0..f03af08 100644 --- a/README.md +++ b/README.md @@ -22,4 +22,5 @@ This bot is made for the automatization of the Nookure Studios discord server su - `bun dev` - Start the bot in development mode - `bun dev:hmr` - Start the bot in development mode with hot module replacement - `bun start` - Start the bot in production mode - +- `bun lint` - Checks errors in the code style +- `bun lint:fix` - Fix linting errors From cc629fb2469073d1a0030daa259a52118add1176 Mon Sep 17 00:00:00 2001 From: Angelillo15 Date: Mon, 26 Feb 2024 21:58:35 +0100 Subject: [PATCH 2/4] Create main.yml --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..0a2b672 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: check linting + +on: + workflow_dispatch: + pull_request: + branches: + - main + push: + branches: + - main + +permissions: + contents: read + +jobs: + format: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: oven-sh/setup-bun@v1 + - name: Install + run: 'bun install' + - name: Lint Check + run: 'bun lint' From bc2ca3c4b3ce6664b9c017c40ad8c246024aab29 Mon Sep 17 00:00:00 2001 From: Angelillo15 Date: Mon, 26 Feb 2024 22:01:09 +0100 Subject: [PATCH 3/4] Update and rename main.yml to lint.yml --- .github/workflows/lint.yml | 24 ++++++++++++++++++++++++ .github/workflows/main.yml | 24 ------------------------ 2 files changed, 24 insertions(+), 24 deletions(-) create mode 100644 .github/workflows/lint.yml delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..e7232b9 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,24 @@ +name: lint + +on: + workflow_dispatch: + pull_request: + branches: + - main + push: + branches: + - main + +jobs: + lint: + name: lint + runs-on: ubuntu-latest + steps: + # ... + - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v1 + + # run any `bun` or `bunx` command + - run: bun install + - run: bun index.ts + - run: bun run build diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 0a2b672..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: check linting - -on: - workflow_dispatch: - pull_request: - branches: - - main - push: - branches: - - main - -permissions: - contents: read - -jobs: - format: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: oven-sh/setup-bun@v1 - - name: Install - run: 'bun install' - - name: Lint Check - run: 'bun lint' From 359dce2adf080824fc49104f8447ea8ebd65bed9 Mon Sep 17 00:00:00 2001 From: Angelillo15 Date: Mon, 26 Feb 2024 22:01:50 +0100 Subject: [PATCH 4/4] Update lint.yml --- .github/workflows/lint.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e7232b9..42cd132 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -20,5 +20,4 @@ jobs: # run any `bun` or `bunx` command - run: bun install - - run: bun index.ts - - run: bun run build + - run: bun lint