diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..42cd132 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,23 @@ +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 lint 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