Start initial canvas panning before database initialization #128
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 and Pages | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| frontend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| - run: bun install --frozen-lockfile | |
| working-directory: frontend | |
| - run: bun run type-check | |
| working-directory: frontend | |
| - run: bun run lint | |
| working-directory: frontend | |
| - run: bun run test:run | |
| working-directory: frontend | |
| - name: Check production OAuth configuration | |
| if: github.event_name != 'pull_request' | |
| run: test -n "$VITE_GOOGLE_CLIENT_ID" | |
| env: | |
| VITE_GOOGLE_CLIENT_ID: ${{ vars.GOOGLE_CLIENT_ID || vars.VITE_GOOGLE_CLIENT_ID || secrets.GOOGLE_CLIENT_ID || secrets.VITE_GOOGLE_CLIENT_ID }} | |
| - run: bun run build | |
| working-directory: frontend | |
| env: | |
| VITE_GOOGLE_CLIENT_ID: ${{ vars.GOOGLE_CLIENT_ID || vars.VITE_GOOGLE_CLIENT_ID || secrets.GOOGLE_CLIENT_ID || secrets.VITE_GOOGLE_CLIENT_ID }} | |
| - uses: actions/configure-pages@v5 | |
| if: github.event_name != 'pull_request' | |
| - uses: actions/upload-pages-artifact@v3 | |
| if: github.event_name != 'pull_request' | |
| with: | |
| path: frontend/dist | |
| deploy: | |
| if: github.event_name != 'pull_request' | |
| needs: frontend | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |