Skip to content

Commit f438171

Browse files
authored
Merge pull request #106 from antigenomics/github-ci-test
Add simple CI pipeline for building and testing the changes
2 parents a122513 + d23e76b commit f438171

1 file changed

Lines changed: 65 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
pull_request:
7+
branches: [ main, master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
# Checkout repository
15+
- name: Checkout source
16+
uses: actions/checkout@v4
17+
18+
# Set up Java 8 for SBT / Scala
19+
- name: Set up Java 8
20+
uses: actions/setup-java@v4
21+
with:
22+
distribution: zulu
23+
java-version: '8'
24+
cache: sbt
25+
26+
# Set up SBT
27+
- uses: sbt/setup-sbt@v1
28+
29+
# Set up Node.js 11
30+
# GitHub runners no longer ship Node 11 by default, so we install it explicitly
31+
- name: Set up Node.js 11
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: '11'
35+
cache: 'yarn'
36+
cache-dependency-path: app/frontend/yarn.lock
37+
38+
# Install Yarn 1.x explicitly
39+
- name: Install Yarn
40+
run: |
41+
npm install -g yarn@1.22.19
42+
yarn --version
43+
44+
# Verify toolchain
45+
- name: Verify tool versions
46+
run: |
47+
java -version
48+
node --version
49+
npm --version
50+
yarn --version
51+
sbt --version
52+
53+
# Build frontend + backend
54+
- name: Build application
55+
run: |
56+
sbt frontendInstallDependencies build
57+
58+
# Upload build artifact (optional but useful)
59+
- name: Upload server package
60+
if: success()
61+
uses: actions/upload-artifact@v4
62+
with:
63+
name: vdjdb-server
64+
path: target/universal/*.zip
65+

0 commit comments

Comments
 (0)