Repository navigation
refactor(library): mockup of a whole new library (that also relies on… #7
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
| # Workflow to verify the library of the project. | |
| --- | |
| name: Verify library. | |
| on: | |
| push: | |
| paths: | |
| - "packages/lib/**" | |
| - ".github/workflows/VerifyLibraryWorkflow.yaml" | |
| pull_request: | |
| paths: | |
| - "packages/lib/**" | |
| - ".github/workflows/VerifyLibraryWorkflow.yaml" | |
| permissions: | |
| contents: read | |
| defaults: | |
| run: | |
| working-directory: packages/lib | |
| shell: bash | |
| jobs: | |
| verify-library: | |
| name: Verify library. | |
| runs-on: ubuntu-latest | |
| env: | |
| NODE_ENV: test | |
| steps: | |
| - name: Checkout repository. | |
| uses: actions/checkout@v7 | |
| - name: Setup Bun. | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies. | |
| run: bun install --frozen-lockfile | |
| - name: Initialize testing environment. | |
| run: bun run test:init | |
| - name: Check formatting of all files using Prettier. | |
| run: bun run format:check | |
| - name: Check linting of all files using ESLint. | |
| run: bun run lint | |
| - name: Run tests. | |
| run: bun run test |