Skip to content

Commit

Permalink
Create main.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
baslo2 authored Jun 24, 2024
1 parent 825bc44 commit c55e786
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Test

on:
push:

jobs:

compile:
runs-on: ubuntu-latest
name: Running Java 8 compile
steps:
- uses: actions/checkout@v4
- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '8'
- name: Compile code
run: mvn compile

test:
runs-on: ubuntu-latest
name: Running tests
needs: compile
steps:
- uses: actions/checkout@v4
- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '8'
- name: Run unit tests
run: mvn test -B verify

build:
runs-on: ubuntu-latest
name: mvn build
needs: compile
steps:
- uses: actions/checkout@v4
- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '8'
- name: build
run: mvn clean package -DskipTests

0 comments on commit c55e786

Please sign in to comment.