feat: Use level 2 headings for changelog type titles #14
Workflow file for this run
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: Pull Request Checks | |
on: | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
checks: write | |
pull-requests: write | |
jobs: | |
lint-format-test: | |
name: Lint, Format, Test | |
runs-on: ubuntu-latest | |
env: | |
ENV: ci | |
HUSKY: '0' | |
steps: | |
- name: Get Fetch Depth | |
id: fetch_depth | |
run: | | |
FETCH_DEPTH="$(( ${{ github.event.pull_request.commits }} + 2 ))" | |
echo "Fetch Depth: ${FETCH_DEPTH}" | |
echo "fetch_depth=${FETCH_DEPTH}" >> "$GITHUB_OUTPUT" | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: ${{ steps.fetch_depth.outputs.fetch_depth }} | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Install Dependencies | |
run: npm ci | |
- name: Validate PR commit messages with commitlint | |
run: | | |
npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose | |
- name: Check Formatting | |
run: npm run format:ci | |
- name: Typescript Type Checks | |
run: npm run type | |
- name: Run Linter | |
run: npm run lint:ci | |
- name: Run Unit Tests | |
id: unit_tests | |
run: npm run test:ci | |
- name: Generate Unit Test Report | |
if: | | |
( success() || failure() ) | |
&& ( steps.unit_tests.conclusion == 'success' || steps.unit_tests.conclusion == 'failure' ) | |
uses: dorny/test-reporter@v1.8.0 | |
with: | |
name: Vitest Report | |
path: reports/vitest-junit-report.xml | |
reporter: jest-junit | |
fail-on-error: false | |
- name: Report Coverage | |
if: | | |
( success() || failure() ) | |
&& ( steps.unit_tests.conclusion == 'success' || steps.unit_tests.conclusion == 'failure' ) | |
uses: davelosert/vitest-coverage-report-action@v2 |