From 002575084f9462ebf57121423e4ef5f245020d22 Mon Sep 17 00:00:00 2001 From: KoonQi Date: Tue, 5 Sep 2023 17:42:15 +0800 Subject: [PATCH] added .yml file --- .github/workflows/build.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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 000000000..5d5ef12a4 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,24 @@ +name: Build and Test + +on: + push: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up JDK 17 + uses: actions/setup-java@v2 + with: + java-version: '17' + + - name: Build with Maven + run: mvn -B package --file pom.xml + + - name: Run tests with Maven + run: mvn -B test --file pom.xml \ No newline at end of file