Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nsychev committed Nov 13, 2024
1 parent 4f1dedf commit bf81bb4
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 3 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
with:
version: 9.12.3
- uses: actions/setup-node@v4
with:
node-version: '20.18.0'
cache: 'pnpm'
cache-dependency-path: 'frontend/pnpm-lock.yaml'

- name: Install dependencies
working-directory: ./frontend
run: pnpm install

- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Build with gradle
run: ./gradlew shadowJar

- uses: actions/upload-artifact@v4
with:
name: balloons.jar
path: build/libs/balloons-*.jar
retention-days: 14
compression-level: 0
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ gradle shadowJar

## TODO

- [ ] Frontend: fix space between links
- [ ] Build under newer Javas
- [ ] CI
- [ ] Frontend: detect connection errors
- [ ] Tests
- [ ] Some docs on how to develop it
- [ ] Automate JWT secret generation
4 changes: 4 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}

rootProject.name = "balloons"

include(":frontend")

0 comments on commit bf81bb4

Please sign in to comment.