DiscordTickets/.github/workflows/lint.yml
2023-02-13 14:33:27 +00:00

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