Refactor: Extract duplicated code in job runners #119
Workflow file for this run
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: Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| fail-fast: false | |
| steps: | |
| - id: checkout | |
| name: Checkout | |
| uses: actions/checkout@v3 | |
| - id: setup-bun | |
| name: Setup Bun | |
| uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: latest | |
| - id: install-deps | |
| name: Install dependencies | |
| run: | | |
| bun install | |
| - id: tsc | |
| run: bunx tsc | |
| working-directory: packages/fluent-ai | |
| - id: build | |
| name: Run build | |
| run: | | |
| bun run build | |
| working-directory: packages/fluent-ai | |
| - id: test | |
| name: Run test | |
| run: | | |
| bun test | |
| working-directory: packages/fluent-ai |