Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": [
"next/core-web-vitals",
"next/typescript"
]
}
64 changes: 64 additions & 0 deletions .github/workflows/test-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Test & Tag

on:
push:
branches: [ main, LAB_08 ]
pull_request:
branches: [ main ]
workflow_dispatch:

permissions:
contents: write

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Run unit tests
run: npm test

systemtest:
needs: test
runs-on: ubuntu-latest
environment: testing # Reference your environment here
steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm ci

- name: Run system tests
run: npm run systemtest
env:
MONGODB_URI: ${{ secrets.MONGODB_URI }} # Now pulls from environment

tag-lab-08:
needs: [test, systemtest]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Tag LAB_08
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git tag LAB_08
git push origin LAB_08
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules/
container_logs/
.next/
.next/
mongodb_data_container/
coverage/
12 changes: 12 additions & 0 deletions .idea/dataSources.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@ RUN npm run build
# Expose default Next.js port
EXPOSE 3000

# Set NODE_ENV explicitly
ENV NODE_ENV=production

# Start the app in production mode
CMD ["npm", "start"]
Loading