feat: add init command (#3) #12
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: lint | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
commitlint: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout codebase | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
run_install: false | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
cache: 'pnpm' | |
check-latest: true | |
node-version-file: '.nvmrc' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Check eslint | |
run: pnpm lint | |
- name: Check Prettier | |
run: pnpm check:prettier | |
- name: Check type | |
run: pnpm check:types |