|
5 | 5 | # |
6 | 6 | # This workflow uses the unified `task qa:all` command. |
7 | 7 | # Mirrors Husky pre-push hook exactly (same commands, same checks). |
8 | | -# |
9 | | -# Before enabling in other branches: |
10 | | -# 1. Verify `task qa:all` passes locally |
11 | | -# 2. Ensure backend/frontend ports match `.env` |
12 | | -# 3. Confirm Encore CLI auth is configured in repo secrets |
13 | 8 |
|
14 | 9 | name: CI |
15 | 10 |
|
@@ -54,13 +49,27 @@ jobs: |
54 | 49 | curl -L https://encore.dev/install.sh | bash |
55 | 50 | echo "$HOME/.encore/bin" >> $GITHUB_PATH |
56 | 51 | |
| 52 | + - name: Authenticate with Encore Cloud |
| 53 | + env: |
| 54 | + ENCORE_AUTH_TOKEN: ${{ secrets.ENCORE_AUTH_TOKEN }} |
| 55 | + run: | |
| 56 | + if [ -z "$ENCORE_AUTH_TOKEN" ]; then |
| 57 | + echo "⚠️ WARNING: ENCORE_AUTH_TOKEN not set in GitHub Secrets" |
| 58 | + echo " Encore builds requiring secrets will fail" |
| 59 | + echo " To fix: Add your Encore auth token as a GitHub Secret named 'ENCORE_AUTH_TOKEN'" |
| 60 | + else |
| 61 | + echo "🔐 Encore authentication configured" |
| 62 | + fi |
| 63 | + |
57 | 64 | - name: Install Backend Dependencies |
58 | 65 | run: cd backend && bun install |
59 | 66 |
|
60 | 67 | - name: Install Frontend Dependencies |
61 | 68 | run: cd frontend && bun install |
62 | 69 |
|
63 | 70 | - name: Start Backend |
| 71 | + env: |
| 72 | + ENCORE_AUTH_TOKEN: ${{ secrets.ENCORE_AUTH_TOKEN }} |
64 | 73 | run: | |
65 | 74 | cd backend |
66 | 75 | encore run & |
@@ -103,7 +112,13 @@ jobs: |
103 | 112 | # Environment: |
104 | 113 | # - Uses standard ports from .env (4000 backend, 5173 frontend) |
105 | 114 | # - In-memory database for tests |
106 | | -# - No secrets required |
| 115 | +# - ENCORE_AUTH_TOKEN: GitHub Secret required for accessing Encore Cloud secrets |
| 116 | +# |
| 117 | +# GitHub Secrets Setup: |
| 118 | +# 1. Go to: Settings → Secrets and variables → Actions |
| 119 | +# 2. Create new secret: ENCORE_AUTH_TOKEN |
| 120 | +# 3. Get token from: encore auth token (run locally) |
| 121 | +# 4. Paste into GitHub Secrets |
107 | 122 | # |
108 | 123 | # Testing before activation: |
109 | 124 | # 1. Create feature branch |
|
0 commit comments