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
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Ignore everything
*

# Except the pre-built artifacts
!backend/target/universal/stage/
!frontend/dist/
51 changes: 51 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: CI

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

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: 'sbt'

- name: Set up sbt
uses: sbt/setup-sbt@v1

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json

- name: Compile
run: sbt compile

- name: Run backend tests
run: sbt backend/test

- name: Build frontend (Scala.js)
run: sbt frontend/fastLinkJS

- name: Install frontend dependencies
working-directory: frontend
run: npm ci

- name: Build frontend (Vite)
working-directory: frontend
run: npm run build

- name: Format check
run: sbt scalafmtCheckAll
54 changes: 54 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/

### IntelliJ IDEA ###
.idea/
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/

### VS Code ###
.vscode/

### Mac OS ###
.DS_Store

### Scala ###
.bsp/

### Node.js ###
node_modules/

### SSBudget ###
data/
bugs.md
spec.md

frontend/dist
12 changes: 12 additions & 0 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version = 3.10.3
runner.dialect = scala3
runner.dialectOverride.allowSignificantIndentation = false

align.preset = most
trailingCommas = always
maxColumn = 150
rewrite.rules = [AsciiSortImports, SortModifiers]
assumeStandardLibraryStripMargin = true


rewrite.scala3.convertToNewSyntax = true
Loading