DiscordTickets/.github/workflows/lint.yml

33 lines
644 B
YAML
Raw Permalink 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:
2023-09-07 04:14:23 +03:00
version: 8
2023-02-13 16:33:27 +02:00
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- run: pnpm install
2023-09-07 04:14:23 +03:00
- run: pnpm run lint