From 38cc784411d98fac7bf151e6522f90fc3f6872b6 Mon Sep 17 00:00:00 2001 From: Tadayoshi Sato Date: Tue, 21 Nov 2023 21:30:49 +0900 Subject: [PATCH] Add build workflow --- .github/workflows/build.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..bdef288 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,33 @@ +name: Build + +on: + pull_request: + branches: + - main + paths-ignore: + - '**.md' + push: + branches: + - main + paths-ignore: + - '**.md' + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + java: ['17', '21'] + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Set up Java + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: ${{ matrix.java }} + cache: 'maven' + - name: Build + run: | + mvn --batch-mode --no-transfer-progress install