Skip to content

Commit

Permalink
Server CI GitHub Actions setup
Browse files Browse the repository at this point in the history
  • Loading branch information
semotpan committed Feb 20, 2024
1 parent 88fdd56 commit ab91b95
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/server-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflows will build a Java project with Maven, and cache/restore any dependencies to improve the workflows execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

# This workflows uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Server CI

on:
push:
branches: [ "main" ]
paths: [ 'server/**', '.github/workflows/server-ci.yml' ]
pull_request:
branches: [ "main" ]
paths: [ 'server/**', '.github/workflows/server-ci.yml' ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'adopt'

- name: Test and Build 'server' with maven
run: ./server/mvnw --batch-mode --update-snapshots clean verify -f server/pom.xml
3 changes: 1 addition & 2 deletions server/src/test/java/io/myfinbox/ServerApplicationTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
@SpringBootTest(classes = TestServerApplication.class)
class ServerApplicationTests {

@Test
void contextLoads() {
}

}

0 comments on commit ab91b95

Please sign in to comment.