formatting #16
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: CI | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| branches: [main, develop] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: 1.3.6 | |
| - run: bun install --frozen-lockfile | |
| - run: bun run lint | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: 1.3.6 | |
| - run: bun install --frozen-lockfile | |
| - run: bun run build | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: build-artifacts | |
| path: | | |
| packages/*/dist | |
| packages/*/esm | |
| apps/*/build | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: 1.3.6 | |
| - run: bun install --frozen-lockfile | |
| # Vitest runs from a clean checkout; build the shared workspace packages that are | |
| # consumed via package exports (dist/*) before running tests. | |
| - run: bunx turbo run build --filter=@pie-elements-ng/shared-types --filter=@pie-elements-ng/shared-utils --filter=@pie-elements-ng/shared-test-utils | |
| - run: bun run test | |
| - uses: codecov/codecov-action@v4 | |
| if: always() | |
| with: | |
| files: ./coverage/coverage-final.json | |
| token: ${{ secrets.CODECOV_TOKEN }} |