Skip to content

Commit

Permalink
chore: add checks on pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerzl authored Mar 1, 2024
1 parent 4d3d856 commit 5c70084
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Quality checks

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

on:
pull_request:
paths-ignore:
- "**/*.md"
workflow_dispatch:

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend

steps:
- name: Checkout
uses: actions/[email protected]
with:
show-progress: false

- name: Setup node environment
uses: actions/[email protected]
with:
node-version: 20
check-latest: true

- name: Install dependencies
run: pnpm i

- name: Run linter ✏️
run: pnpm run lint

conventional_commits:
name: Conventional commits check
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/[email protected]
with:
show-progress: false

- name: Check if all commits comply with the specification
uses: webiny/[email protected]

0 comments on commit 5c70084

Please sign in to comment.