From 13423b62a72146e17322bc67588d8ad471d8ec69 Mon Sep 17 00:00:00 2001 From: Pragati Sawaliya <92318379+Pragati0510@users.noreply.github.com> Date: Sat, 3 Feb 2024 21:07:06 +0530 Subject: [PATCH 1/2] Create main.yml --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..a92266946 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: Build and Test + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + java-version: '11' + + - name: Build with Maven + run: mvn -B package --file pom.xml + + - name: Run tests + run: mvn test From f9aadd91289d185243d3a5db771621e2c9ca3522 Mon Sep 17 00:00:00 2001 From: Pragati Sawaliya <92318379+Pragati0510@users.noreply.github.com> Date: Sat, 3 Feb 2024 21:08:46 +0530 Subject: [PATCH 2/2] Update main.yml --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a92266946..2633b88a7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,6 +16,7 @@ jobs: uses: actions/setup-java@v2 with: java-version: '11' + distribution: 'adopt' - name: Build with Maven run: mvn -B package --file pom.xml