chore: merge PR #4 from branch 'changeset-release/main' #11
This file contains hidden or 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: Continuous Integration | |
| on: | |
| pull_request: | |
| branches: | |
| - '**' | |
| push: | |
| branches: | |
| - '**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| HUSKY: 0 | |
| NODE_VERSION: 20 | |
| BUN_VERSION: latest | |
| jobs: | |
| type-check: | |
| name: TypeScript Compilation Checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: ${{ env.BUN_VERSION }} | |
| - run: bun install --frozen-lockfile | |
| - run: bun run build | |
| - run: bun run type-check:ci | |
| lint: | |
| name: Linting & Formatting Checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: ${{ env.BUN_VERSION }} | |
| - run: bun install --frozen-lockfile | |
| - run: bun run lint | |
| test: | |
| name: Unit Tests Assertions | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: ${{ env.BUN_VERSION }} | |
| - run: bun install --frozen-lockfile | |
| - run: bun run build | |
| - run: bun run test:ci | |
| publish-mock: | |
| name: Publishing Package Dry Run | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| pkg: | |
| - 'cnpj-fmt' | |
| - 'cnpj-gen' | |
| - 'cnpj-utils' | |
| - 'cnpj-val' | |
| - 'cpf-fmt' | |
| - 'cpf-gen' | |
| - 'cpf-utils' | |
| - 'cpf-val' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: ${{ env.BUN_VERSION }} | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| - run: bun install --frozen-lockfile | |
| - run: bun run build | |
| - working-directory: packages/${{ matrix.pkg }} | |
| run: npm publish --dry-run |