Skip to content
Merged
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
65 changes: 65 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Build and Test

on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]

jobs:
build:
runs-on: ubuntu-latest

steps:
# Checkout repository
- name: Checkout source
uses: actions/checkout@v4

# Set up Java 8 for SBT / Scala
- name: Set up Java 8
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: '8'
cache: sbt

# Set up SBT
- uses: sbt/setup-sbt@v1

# Set up Node.js 11
# GitHub runners no longer ship Node 11 by default, so we install it explicitly
- name: Set up Node.js 11
uses: actions/setup-node@v4
with:
node-version: '11'
cache: 'yarn'
cache-dependency-path: app/frontend/yarn.lock

# Install Yarn 1.x explicitly
- name: Install Yarn
run: |
npm install -g [email protected]
yarn --version

# Verify toolchain
- name: Verify tool versions
run: |
java -version
node --version
npm --version
yarn --version
sbt --version

# Build frontend + backend
- name: Build application
run: |
sbt frontendInstallDependencies build

# Upload build artifact (optional but useful)
- name: Upload server package
if: success()
uses: actions/upload-artifact@v4
with:
name: vdjdb-server
path: target/universal/*.zip