feat: Add @commitlint/load as external dependency (#18) #97
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🧪 CI Tests | |
on: | |
pull_request: | |
branches: | |
- '**' | |
push: | |
branches: | |
- main | |
env: | |
DEBUG: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🔖Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: 📦Setup PNPM | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 8 | |
- name: 🌳Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: pnpm | |
- name: 🛠️Install dependencies from lockfile | |
run: pnpm install --frozen-lockfile | |
- name: 🧾Print versions | |
run: | | |
git --version | |
node --version | |
pnpm --version | |
pnpm commitlint --version | |
- name: 📝Validate PR commits with commitlint | |
if: ${{ github.event_name != 'push' }} | |
run: pnpm commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose | |
- name: 🤞Run CI command | |
run: pnpm run ci | |
- name: ☂️Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |