-
Notifications
You must be signed in to change notification settings - Fork 69
Feat/add badge awarding logic #269
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
Open
Nabeelahh
wants to merge
11
commits into
geevapp:main
Choose a base branch
from
Nabeelahh:feat/add-badge-awarding-logic
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
e07ef0d
added badge awarding logic
Nabeelahh 664752c
fixed an error
Nabeelahh 6f7513c
fix
Nabeelahh e1f7f7c
fixing errors
Nabeelahh 1cfe46f
jjjj
koder-ns 9940916
Merge branch 'main' into feat/add-badge-awarding-logic
Nabeelahh f95e565
d
Nabeelahh c70775a
jjj
Nabeelahh dcfb830
Add pnpm-lock.yaml and update .gitignore for CI/CD
Nabeelahh 40d819a
Fix CI/CD workflows: Add Prisma client generation and environment setup
Nabeelahh bab667a
Fix CI/CD test workflow: Add environment variables for test database
Nabeelahh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| name: Build and Deploy | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| branches: [main] | ||
|
|
||
| jobs: | ||
| build: | ||
| env: | ||
| DATABASE_URL: postgresql://postgres:postgres@localhost:5432/geev_test | ||
| JWT_SECRET: test-secret-key | ||
| NODE_ENV: test | ||
| runs-on: ubuntu-latest | ||
|
|
||
| defaults: | ||
| run: | ||
| working-directory: app | ||
|
|
||
| services: | ||
| postgres: | ||
| image: postgres:15 | ||
| env: | ||
| POSTGRES_USER: postgres | ||
| POSTGRES_PASSWORD: postgres | ||
| POSTGRES_DB: geev_test | ||
| options: >- | ||
| --health-cmd pg_isready | ||
| --health-interval 10s | ||
| --health-timeout 5s | ||
| --health-retries 5 | ||
| ports: | ||
| - 5432:5432 | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '20' | ||
| cache: 'npm' | ||
|
|
||
| - name: Install dependencies | ||
| run: npm ci | ||
|
|
||
| - name: Generate Prisma Client | ||
| run: npx prisma generate | ||
|
|
||
| - name: Run database migrations | ||
| env: | ||
| DATABASE_URL: postgresql://postgres:postgres@localhost:5432/geev_test | ||
| run: npx prisma migrate deploy | ||
|
|
||
| - name: Seed database with badges | ||
| env: | ||
| DATABASE_URL: postgresql://postgres:postgres@localhost:5432/geev_test | ||
| run: npx prisma db seed | ||
|
|
||
| - name: Run ESLint | ||
| run: npm run lint | ||
|
|
||
| - name: Build Next.js application | ||
| run: npm run build | ||
|
|
||
| - name: Upload build artifacts | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: build-files | ||
| path: app/.next | ||
| retention-days: 1 | ||
|
|
||
| deploy: | ||
| needs: build | ||
| runs-on: ubuntu-latest | ||
| if: github.ref == 'refs/heads/main' | ||
|
|
||
| steps: | ||
| - name: Download build artifacts | ||
| uses: actions/download-artifact@v4 | ||
| with: | ||
| name: build-files | ||
| path: app/.next | ||
|
|
||
| - name: Deploy to production | ||
| run: | | ||
| echo "Deployment step would go here" | ||
| echo "Configure for your deployment target (Vercel, Netlify, AWS, etc.)" |
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This is beyond the scope of issue #191. Please remove