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: 3 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PORT=3000
DATABASE_URL=postgresql://postgres:password@localhost:5432/codeclash
JWT_SECRET=your_jwt_secret_here
PORT=3000
DATABASE_URL=postgresql://postgres:password@localhost:5432/codeclash
JWT_SECRET=your_jwt_secret_here
JUDGE0_URL=http://localhost:2358
8 changes: 4 additions & 4 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## What does this PR do?

## Related issue

## What does this PR do?
## Related issue
## How to test
88 changes: 44 additions & 44 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
# This is a basic workflow to help you get started with Actions

name: CI Pipeline

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "dev" branch
push:
branches: [ "main","dev" ]
pull_request:
branches: [ "main","dev" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
container:
image: node:20-alpine

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4

- name: Install dependencies (requires package.json)
run: npm ci

test:
runs-on: ubuntu-latest
container:
image: node:20-alpine

steps:
- uses: actions/checkout@v4

- name: Run the Tests
run: npm test --if-present || true


# This is a basic workflow to help you get started with Actions
name: CI Pipeline
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "dev" branch
push:
branches: [ "main","dev" ]
pull_request:
branches: [ "main","dev" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
container:
image: node:20-alpine
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Install dependencies (requires package.json)
run: npm ci
test:
runs-on: ubuntu-latest
container:
image: node:20-alpine
steps:
- uses: actions/checkout@v4
- name: Run the Tests
run: npm test --if-present || true
Loading
Loading