Skip to content

Commit

Permalink
multi-step quick build
Browse files Browse the repository at this point in the history
  • Loading branch information
hhund committed Nov 20, 2023
1 parent 5cc64f9 commit 8915b2e
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/maven-build-multi-step.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Java CI Build with Maven (multi-step)

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup JDK 17 with maven cache
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
cache: 'maven'

- name: Show CPUs available
run: lscpu

- name: Show RAM available
run: free -h

- name: Run maven compile
run: mvn --batch-mode --fail-at-end --threads 2C compile test-compile

- name: Run maven tests
run: mvn --batch-mode --fail-at-end --threads 2C surefire:test

- name: Run maven integration tests
run: mvn --batch-mode --fail-at-end -D forkCount=2 failsafe:integration-test failsafe:verify

0 comments on commit 8915b2e

Please sign in to comment.