Skip to content
Draft
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
67 changes: 0 additions & 67 deletions .config/mise.toml

This file was deleted.

67 changes: 0 additions & 67 deletions .github/copilot-instructions.md

This file was deleted.

96 changes: 82 additions & 14 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,101 @@ on:
branches: ['master']

jobs:
# This job runs all the primary checks: linting, formatting, type checking, and unit tests.
# It is the equivalent of the old `build`, `test`, `lint`, and `format` jobs combined.
checks:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [20.17]
steps:
- uses: actions/checkout@v4
- name: Setup mise
uses: jdx/mise-action@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: mise run check
- run: npm run build

test:
runs-on: ubuntu-latest
strategy:
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [20.17]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm test

smoke-test-stolaf:
runs-on: ubuntu-latest
needs: checks
strategy:
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [20.17]
steps:
- uses: actions/checkout@v4
- name: Setup mise
uses: jdx/mise-action@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: mise run test:stolaf-college
- run: npm run build
- run: npm run test:stolaf-college

smoke-test-carleton:
runs-on: ubuntu-latest
needs: checks
strategy:
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [20.17]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm run test:carleton-college

lint:
runs-on: ubuntu-latest
strategy:
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [20.17]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run lint

format:
runs-on: ubuntu-latest
strategy:
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [20.17]
steps:
- uses: actions/checkout@v4
- name: Setup mise
uses: jdx/mise-action@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: mise run test:carleton-college
- run: npm run p
22 changes: 9 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Install
```sh
git clone https://github.com/frog-pond/ccc-server.git
cd ccc-server
npm ci
npm install
```

## Running the Server
Expand All @@ -23,38 +23,34 @@ npm ci
Watch mode (recommended): auto-recompile & restart on changes

```sh
mise run watch
npm run watch
```

Institution-specific servers

```sh
mise run stolaf-college
mise run carleton-college
npm run stolaf-college
npm run carleton-college
```

### Production

```sh
mise run build
mise run start:prod
npm run build
npm run start:prod
```

## Testing

All tests

```sh
mise run test
npm run test
```

Smoke tests

```sh
mise run test:stolaf-college
mise run test:carleton-college
npm run test:stolaf-college
npm run test:carleton-college
```

TDD workflow

This repository practices TDD for agentic development: write a failing AVA test next to the implementation (`*.test.ts`), run `mise run test`, implement until green, then run smoke tests for integration checks.
21 changes: 0 additions & 21 deletions SECURITY.md

This file was deleted.

Loading