Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
bifrurcated committed Jan 12, 2024
2 parents 8bab6e5 + a2d444d commit 6301596
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build_and_test_maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Java CI with Gradle

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
name: Build and Run Tests
runs-on: ubuntu-latest

services:
postgres:
image: postgres:15.1-alpine
env:
POSTGRES_DB: wallet
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 123
ports:
- 5432:5432
options:
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5

steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
env:
POSTGRES_HOST: postgres
- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '**/build/test-results/test/TEST-*.xml'

0 comments on commit 6301596

Please sign in to comment.