Skip to content

feat: Add initial github action #5

feat: Add initial github action

feat: Add initial github action #5

Workflow file for this run

name: Java CI Pipeline
on:
push:
branches:
- develop
pull_request:
branches:
- develop
jobs:
build:
runs-on: ubuntu-latest
steps:
- - name: Start PostgreSQL with Docker Compose

Check failure on line 16 in .github/workflows/java-ci.yml

View workflow run for this annotation

GitHub Actions / Java CI Pipeline

Invalid workflow file

The workflow is not valid. .github/workflows/java-ci.yml (Line: 16, Col: 9): A sequence was not expected .github/workflows/java-ci.yml (Line: 18, Col: 9): Unexpected value 'docker compose up -d'
- run: |
- docker compose up -d
- sleep 20
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 21
uses: actions/setup-java@v2
with:
java-version: '21'
distribution: 'temurin'
- name: Build with Maven
run: mvn clean install -DskipTests
- name: Run tests
run: mvn test -Dspring.profiles.active=test
#- name: Run Checkstyle
# run: mvn checkstyle:check
- name: Build JAR file
run: mvn package