From f78accbfd28952902a231d668a0169a8c3b89bb9 Mon Sep 17 00:00:00 2001 From: elchinbehbudov <110397352+elchinbehbudov@users.noreply.github.com> Date: Sun, 14 Aug 2022 00:33:47 +0400 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 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 00000000..40672f36 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,22 @@ +name: Maven CI/CD + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build_and_test: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 14 + uses: actions/setup-java@v1 + with: + java-version: 14 + + - name: Build project with Maven + run: mvn -B package --file pom.xml