docs: add badges #16
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
# Dev workflow. Performs checks but does NOT release. | |
# Intended to be run on any pushed development branch (not main). | |
name: Dev branch checks | |
on: | |
push: | |
branches-ignore: | |
- main | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
cache: 'npm' | |
cache-dependency-path: ./package-lock.json | |
- name: Install dependencies | |
run: npm clean-install | |
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies | |
run: npm audit signatures | |
- name: Check code style | |
run: npm run prettier:check | |
- name: Lint & license header check | |
run: npm run lint | |
- name: Test | |
run: npm run test:ci | |
- name: Clean dist/ | |
run: npm run clean | |
- name: Build | |
run: npm run build | |
# - name: Package # We don't current do any special packaging. | |
# run: npm run package |