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
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: CI

on:
push:
branches: ['**']
pull_request:
branches: [main]

jobs:
test:
uses: ./.github/workflows/test.yml
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test

on:
workflow_call:

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

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 24
cache: npm

- name: Install dependencies
run: npm ci

- name: TypeScript typecheck
run: npm run typecheck

- name: Run build
run: npm run build

- name: Run tests
run: npm run test:coverage
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Class Sync
Discord bot for syncing course deadlines across class channels and forums. Features automatic reminders, role-based cohort organization, and per-guild data isolation.

[![CI](https://github.com/masonlet/class-sync/actions/workflows/ci.yml/badge.svg)](https://github.com/masonlet/class-sync/actions/workflows/ci.yml)
[![Privacy Policy](https://img.shields.io/badge/Privacy-Policy-blue)](https://github.com/masonlet/class-sync-legal/blob/main/privacy.md)
[![Terms of Service](https://img.shields.io/badge/Terms-of%20Service-blue)](https://github.com/masonlet/class-sync-legal/blob/main/tos.md)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE)
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "dist/src/index.js",
"type": "module",
"scripts": {
"typecheck": "tsc",
"build": "tsc -p tsconfig.build.json",
"deploy": "npm run build && node dist/deploy-commands.js",
"start": "npm run build && node dist/src/index.js",
Expand Down
Loading