added .yml file

This commit is contained in:
KoonQi 2023-09-05 17:42:15 +08:00
parent 54bd3fc934
commit 002575084f

24
.github/workflows/build.yml vendored Normal file
View file

@ -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