DiscordTickets/.github/workflows/lint.yml

32 lines
643 B
YAML
Raw Normal View History

2023-02-13 16:33:27 +02:00
name: Lint
on: [push, pull_request]
# push:
# branches:
# - main
2021-05-25 22:51:21 +03:00
# pull_request:
2023-02-13 16:33:27 +02:00
# branches:
# - main
2021-05-22 15:27:12 +03:00
jobs:
2023-02-13 16:33:27 +02:00
commitlint:
2021-05-22 15:27:12 +03:00
runs-on: ubuntu-latest
steps:
2023-02-13 16:33:27 +02:00
- uses: actions/checkout@v3
2021-05-22 15:27:12 +03:00
with:
2023-02-13 16:33:27 +02:00
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v5
2021-05-22 15:27:12 +03:00
with:
2023-02-13 16:33:27 +02:00
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