From 4825f2f76430588117792d0f6082935c6ed0f5f4 Mon Sep 17 00:00:00 2001 From: romainmoreau <1763676+romainmoreau@users.noreply.github.com> Date: Sun, 22 Oct 2023 17:24:17 +0200 Subject: [PATCH] GitHub workflow --- .github/workflows/maven.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 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..a9560a7 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,33 @@ +name: Java CI with Maven +on: + push: + branches: [ "master" ] +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout gsm-modem + uses: actions/checkout@v4 + with: + repository: romainmoreau/gsm-modem + path: gsm-modem + - name: Checkout e-paper + uses: actions/checkout@v4 + with: + repository: romainmoreau/e-paper + path: e-paper + - name: Checkout gas-sensor + uses: actions/checkout@v4 + with: + path: gas-sensor + - name: Set up JDK 21 + uses: actions/setup-java@v3 + with: + java-version: '21' + distribution: 'oracle' + - name: Build gsm-modem + run: mvn -B install --file gsm-modem/pom.xml + - name: Build e-paper + run: mvn -B install --file e-paper/pom.xml + - name: Build gas-sensor + run: mvn -B package --file gas-sensor/pom.xml