Skip to content

Quality checks πŸ‘ŒπŸ§ͺ #3100

Quality checks πŸ‘ŒπŸ§ͺ

Quality checks πŸ‘ŒπŸ§ͺ #3100

name: Quality checks πŸ‘ŒπŸ§ͺ
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
pull_request:
paths-ignore:
- '**/*.md'
merge_group:
schedule:
- cron: 30 7 * * 6
workflow_dispatch:
jobs:
dependency-review:
name: Vulnerable dependencies πŸ”Ž
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/[email protected]
with:
show-progress: false
- name: Scan
uses: actions/[email protected]
with:
## Workaround from https://github.com/actions/dependency-review-action/issues/456
## TODO: Remove when necessary
base-ref: ${{ github.event.pull_request.base.sha || 'master' }}
head-ref: ${{ github.event.pull_request.head.sha || github.ref }}
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: npm ci --no-audit
- name: Run linter ✏️
run: npm run lint
typecheck:
name: Typecheck 🈯
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: npm ci --no-audit
- name: Run typecheck πŸ“–
run: npm run typecheck
build:
name: Build πŸ—οΈ
uses: ./.github/workflows/package.yml
with:
commit: ${{ github.sha }}
conventional_commits:
name: Conventional commits check πŸ’¬
if: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
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]