Skip to content

chore: merge PR #4 from branch 'changeset-release/main' #11

chore: merge PR #4 from branch 'changeset-release/main'

chore: merge PR #4 from branch 'changeset-release/main' #11

Workflow file for this run

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