📝 docs: update README.md #3
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: Test | |
on: | |
push: | |
branches: ["main"] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Init pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: latest | |
- name: Use Node.js v18.18.2 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.18.2 | |
cache: "pnpm" | |
cache-dependency-path: pnpm-lock.yaml | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Checking commit style | |
run: echo "${{ github.event.head_commit.message }}" | ./node_modules/.bin/commitlint | |
- name: Testing | |
run: pnpm run test |