refactor(): migrate to Turborepo monorepo structure #90
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: Tests | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: "pnpm" | |
| - name: Install Dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Run claim-db-worker tests | |
| run: pnpm turbo run test --filter=./apps/claim-db-worker... | |
| env: | |
| NODE_ENV: test | |
| - name: Run create-db-worker tests | |
| run: pnpm turbo run test --filter=./apps/create-db-worker... | |
| env: | |
| NODE_ENV: test | |
| - name: Run create-db tests | |
| run: pnpm turbo run test --filter=./packages/create-db... | |
| env: | |
| NODE_ENV: test | |
| CREATE_DB_WORKER_URL: ${{ secrets.CREATE_DB_WORKER_URL }} | |
| CLAIM_DB_WORKER_URL: ${{ secrets.CLAIM_DB_WORKER_URL }} |