feat: add generateNumberWithLength to generate number seequence #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
name: CI | |
on: | |
push: | |
branches: [main] | |
paths-ignore: | |
- '*.md' | |
- 'docs/**' | |
- '.*' | |
- package.json | |
- yarn.lock | |
- pnpm-lock.yaml | |
pull_request: | |
branches: [main] | |
paths-ignore: | |
- '*.md' | |
- 'docs/**' | |
- '.*' | |
- package.json | |
- yarn.lock | |
- pnpm-lock.yaml | |
workflow_dispatch: | |
# Add cancel in-progress for a concurrency group | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint-test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
steps: | |
- name: Checkout commit | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Read .nvmrc | |
run: | | |
NODE_VERSION=$(cat .nvmrc) | |
echo "NODE_VERSION=$NODE_VERSION" >> $GITHUB_OUTPUT | |
id: nvm | |
- name: Setup pnpm | |
uses: ./.github/actions/install-deps | |
- name: Use Node.js ${{ steps.nvm.outputs.NODE_VERSION }} | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ steps.nvm.outputs.NODE_VERSION }} | |
cache: pnpm | |
cache-dependency-path: pnpm-lock.yaml | |
- name: Run linter | |
run: pnpm lint | |
- name: Run typechecker | |
run: pnpm typecheck | |
- name: Run tests | |
run: pnpm test:no-watch | |
- name: Build | |
run: pnpm build |