Skip to content

Commit

Permalink
Merge pull request #9 from Z-100/#8_Add-pipeline-to-run-build-and-tests
Browse files Browse the repository at this point in the history
Create build-and-test-app.yml
  • Loading branch information
Z-100 authored Aug 27, 2024
2 parents 0ab0358 + 8f73688 commit 9c6e4d1
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-and-test-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and test project

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up JDK 17 with cached dependencies
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven

- name: Start pgsql Docker image
run: docker compose -f ./docker/pgsql-compose.yml up dmz_pgsql -d

- name: Build with Maven
run: mvn install -DskipTests

- name: Test with Maven
run: mvn surefire:test failsafe:integration-test

0 comments on commit 9c6e4d1

Please sign in to comment.