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
125 changes: 0 additions & 125 deletions .github/CONTRIBUTING.md

This file was deleted.

37 changes: 0 additions & 37 deletions .github/pull_request_template.md

This file was deleted.

61 changes: 13 additions & 48 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,58 +8,23 @@ on:

jobs:
build:
name: Build Check
runs-on: ubuntu-latest


steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: apps/backend/package-lock.json

- name: Install dependencies
run: npm ci
- name: Install dependencies
run: npm ci

- name: Build project
run: npm run build
- name: Build
run: npm run build

test:
name: Test Check
runs-on: ubuntu-latest
needs: build

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: Run tests
run: npm test

- name: Check for new test files
if: github.event_name == 'pull_request'
run: |
echo "Checking for new test files in PR..."
git fetch origin ${{ github.base_ref }} --depth=1
NEW_TEST_FILES=$(git diff --name-only --diff-filter=A origin/${{ github.base_ref }} | grep -E '\.(spec|test)\.(ts|js)$' || true)
if [ -n "$NEW_TEST_FILES" ]; then
echo "New test files detected:"
echo "$NEW_TEST_FILES"
echo ""
echo "Running tests to ensure new test files pass..."
npm test -- --findRelatedTests $NEW_TEST_FILES --passWithNoTests
else
echo "No new test files added in this PR."
fi

Loading
Loading