Skip to content

Commit

Permalink
junit workflow CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
sonalgoyal committed Oct 11, 2024
1 parent 7bd42a5 commit cfda621
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 51 deletions.
19 changes: 0 additions & 19 deletions .github/maven.yml

This file was deleted.

44 changes: 12 additions & 32 deletions .github/workflows/junits.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,19 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
name: Java CI

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: buildAndRunTests

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

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: mvn init
run: mvn initialize
- name: Clean the build
run: mvn clean
- name: Install libs
run: mvn validate
- name: Build with Maven
run: mvn -U -B package --file pom.xml


- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
- name: mvn init
run: mvn initialize
- name: Build with Maven
run: mvn clean compile package

0 comments on commit cfda621

Please sign in to comment.