From 83bba7ed825c59b10e99759a53fb255a38ce8b20 Mon Sep 17 00:00:00 2001 From: Hieu Date: Sun, 19 May 2024 20:07:40 +0700 Subject: [PATCH] Create a simple CI workflow that tests and packages modules --- .github/workflows/maven.yml | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/maven.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000..f392890 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,40 @@ +name: Java CI with Maven + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + cache: maven + - name: Build bom + run: mvn clean install + working-directory: bom + + - name: Build grpc-interface + run: mvn clean install + working-directory: grpc-interface + + - name: Build order + run: mvn clean install + working-directory: order + + - name: Build payment + run: mvn clean install + working-directory: payment + + - name: Build shipping + run: mvn clean install + working-directory: shipping