Skip to content

chore(deps): update actions/checkout action to v4.2.0 #5

chore(deps): update actions/checkout action to v4.2.0

chore(deps): update actions/checkout action to v4.2.0 #5

name: Quality checks πŸ‘ŒπŸ§ͺ
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
pull_request:
merge_group:
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 || 'main' }}
head-ref: ${{ github.event.pull_request.head.sha || github.ref }}
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]
no_merge_commits:
name: No merge 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
fetch-depth: 0
- name: Check commits
uses: greenled/[email protected]
quality:
name: Run ${{ matrix.command }} πŸ•΅οΈβ€β™‚οΈ
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
command:
- lint
- check
- build
steps:
- name: Checkout ⬇️
uses: actions/[email protected]
with:
show-progress: false
- name: Setup node environment βš™οΈ
uses: actions/[email protected]
with:
node-version: 20
cache: 'npm'
check-latest: true
- name: Install dependencies πŸ“¦
run: npm ci --no-audit
- name: Run ${{ matrix.command }} βš™οΈ
run: npm run ${{ matrix.command }}