Skip to content

Initial commit: CodFlow v0.1.0-pre #1

Initial commit: CodFlow v0.1.0-pre

Initial commit: CodFlow v0.1.0-pre #1

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
shared:
name: cod-shared (install)
runs-on: ubuntu-latest
defaults:
run:
working-directory: cod-shared
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
cache-dependency-path: cod-shared/package-lock.json
- run: npm ci
server:
name: cod-server (typecheck + test)
runs-on: ubuntu-latest
needs: shared
defaults:
run:
working-directory: cod-server
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
cache-dependency-path: cod-server/package-lock.json
- name: Install cod-shared
run: npm ci
working-directory: cod-shared
- run: npm ci
- run: npm run typecheck
- run: npm test
client:
name: cod-client (typecheck + test)
runs-on: ubuntu-latest
needs: shared
defaults:
run:
working-directory: cod-client
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
cache-dependency-path: cod-client/package-lock.json
- name: Install cod-shared
run: npm ci
working-directory: cod-shared
- run: npm ci
- run: npm run typecheck
- run: npm test