-
Notifications
You must be signed in to change notification settings - Fork 0
feat: migrate to remix v3 #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
0d4eae7
0f1e655
de788a6
2c64add
9182866
8c88744
b2016a8
a04b523
f14b6bb
dfd2dde
6e3945e
346352b
b6529c3
2984484
feb7df5
203df35
3878113
1030897
8e33c7e
559198f
7f44cc7
87723b6
96abbd7
dcb84ab
3b95640
ac7a65d
4610d33
3c5c190
0227875
d80be9d
5bceae2
2a0687d
358f3e7
2b70e1f
40e68b1
eed02c3
fcebcf1
86e8c63
f2ea4c0
de3c63d
bab0769
0ef0f9e
146d890
43d21f9
f4bd1a0
6a04e8d
56cc4b4
7265f39
a765c95
53f4252
017399e
32cf282
01c915a
cf1b967
234cddd
1832109
5a5b6ea
d4ede1d
57473f6
16f59a8
0109505
9b6597f
3ff326b
8532544
5fb36d1
c9cf8a3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| packages/wordle/app/generated/** linguist-generated |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../AGENTS.md |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| name: 🧪 Test | ||
|
|
||
| on: | ||
| push: | ||
| pull_request: | ||
|
|
||
| env: | ||
| DATABASE_URL: postgresql://postgres:password@localhost:5432/remix_wordle_test | ||
| REDIS_URL: redis://localhost:6379 | ||
| SESSION_SECRET: thisisaverysecuresecret1234567890 | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| test: | ||
| name: 🧪 Test | ||
| if: github.repository == 'mcansh/remix-wordle' | ||
|
|
||
| runs-on: ubuntu-slim | ||
| steps: | ||
| - name: ⬇️ Checkout repo | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: ⎔ Setup node | ||
| uses: actions/setup-node@v6 | ||
| with: | ||
| node-version-file: ".node-version" | ||
|
|
||
| - uses: pnpm/action-setup@v4 | ||
| name: 🟧 Install pnpm | ||
| with: | ||
| cache: true | ||
|
|
||
| - name: 🟧 Install dependencies | ||
| run: pnpm install --recursive --frozen-lockfile --strict-peer-dependencies | ||
|
|
||
| - name: 🛠️ Build | ||
| run: pnpm run build | ||
|
|
||
| - name: 🧪 Run Tests | ||
| run: pnpm run test | ||
|
Comment on lines
+16
to
+43
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: cat -n .github/workflows/test.ymlRepository: mcansh/remix-wordle Length of output: 1312 🏁 Script executed: # Search for test configuration files
fd -e "jest.config" -e "vitest.config" -e "test.env" -e ".mocharc" -e ".babelrc" 2>/dev/null | head -20Repository: mcansh/remix-wordle Length of output: 45 🏁 Script executed: # Look for any test files to understand what they test
fd -type f -name "*.test.*" -o -name "*.spec.*" 2>/dev/null | head -10Repository: mcansh/remix-wordle Length of output: 45 🏁 Script executed: # Search for localhost references in the codebase
rg "localhost" --type-list | head -5Repository: mcansh/remix-wordle Length of output: 452 🏁 Script executed: # Search for environment variables related to databases
rg "DATABASE_URL|REDIS_URL|POSTGRES|postgres" --type js --type ts --type json -i | head -20Repository: mcansh/remix-wordle Length of output: 2181 🏁 Script executed: # Check for docker-compose or similar setup
fd docker-compose | head -10Repository: mcansh/remix-wordle Length of output: 81 🏁 Script executed: # Check package.json for test script and any setup
rg "test" package.json -A 5 -B 5Repository: mcansh/remix-wordle Length of output: 388 🏁 Script executed: # Look for any setup files or test initialization
fd -type f -name "setup*" -o -name "*.setup.*" 2>/dev/null | head -10Repository: mcansh/remix-wordle Length of output: 45 🏁 Script executed: cat -n docker-compose.ymlRepository: mcansh/remix-wordle Length of output: 647 🏁 Script executed: # Check the actual test script in the wordle package
fd -type f package.json | xargs rg "test" -A 3 -B 1Repository: mcansh/remix-wordle Length of output: 14014 Add Postgres and Redis services to the workflow. The environment variables 🔧 Proposed fix (service containers) jobs:
test:
name: 🧪 Test
if: github.repository == 'mcansh/remix-wordle'
+ services:
+ postgres:
+ image: postgres:15
+ env:
+ POSTGRES_USER: postgres
+ POSTGRES_PASSWORD: password
+ POSTGRES_DB: remix_wordle_test
+ options: >-
+ --health-cmd pg_isready
+ --health-interval 10s
+ --health-timeout 5s
+ --health-retries 5
+ ports:
+ - 5432:5432
+ redis:
+ image: redis:alpine
+ options: >-
+ --health-cmd "redis-cli ping"
+ --health-interval 10s
+ --health-timeout 5s
+ --health-retries 5
+ ports:
+ - 6379:6379🤖 Prompt for AI Agents |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,8 @@ | ||
| node_modules | ||
|
|
||
| /.cache | ||
| /build | ||
| **/build/** | ||
| **/dist/** | ||
| .env | ||
| .DS_Store | ||
| **/coverage/** |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 24 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: mcansh/remix-wordle
Length of output: 45
🏁 Script executed:
Repository: mcansh/remix-wordle
Length of output: 595
🏁 Script executed:
Repository: mcansh/remix-wordle
Length of output: 1011
🏁 Script executed:
Repository: mcansh/remix-wordle
Length of output: 2313
Move hardcoded secrets to GitHub Secrets.
SESSION_SECRET,DATABASE_URL, andREDIS_URLshould not be hardcoded in the workflow. Use GitHub repository secrets instead to prevent credential exposure and reduce secret scanning noise.🔧 Proposed fix
📝 Committable suggestion
🧰 Tools
🪛 Checkov (3.2.334)
[medium] 8-9: Basic Auth Credentials
(CKV_SECRET_4)
[low] 10-11: Base64 High Entropy String
(CKV_SECRET_6)
🤖 Prompt for AI Agents