diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..1acf57c --- /dev/null +++ b/.github/workflows/main.yaml @@ -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