mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-13 23:53:08 +02:00
32 lines
643 B
YAML
32 lines
643 B
YAML
name: Lint
|
|
on: [push, pull_request]
|
|
# push:
|
|
# branches:
|
|
# - main
|
|
# pull_request:
|
|
# branches:
|
|
# - main
|
|
|
|
jobs:
|
|
commitlint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: wagoid/commitlint-github-action@v5
|
|
with:
|
|
configFile: .commitlintrc.js
|
|
eslint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: pnpm/action-setup@v2
|
|
with:
|
|
version: 7
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
cache: 'pnpm'
|
|
- run: pnpm install
|
|
- run: pnpm run lint |