FormBadge fix #671
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: Check | |
on: | |
push: | |
branches: ["master", "dev"] | |
pull_request: | |
branches: ["master", "dev"] | |
env: | |
NODE_VERSION: "21.7.3" | |
jobs: | |
check: | |
name: Style and build | |
runs-on: ubuntu-latest | |
permissions: | |
security-events: write | |
actions: read | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: "npm" | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint code | |
run: npm run lint | |
- name: Prettier code | |
run: npm run fmt.check | |
- name: Check spelling | |
uses: crate-ci/typos@master | |
- name: Run build | |
run: npm run build |