feat: singleton refactor #4
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: build | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Bun | |
| uses: oven-sh/setup-bun@v1 | |
| - name: Start docker compose | |
| run: | | |
| docker compose down --volumes --remove-orphans || true | |
| docker compose up -d | |
| sleep 3 | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Run tests | |
| run: bun test | |
| - name: Build project | |
| run: bun run build | |
| - name: Stop docker compose | |
| if: always() | |
| run: docker compose down --volumes --remove-orphans |