Skip to content

Commit

Permalink
Add CI workflow for Maven build
Browse files Browse the repository at this point in the history
  • Loading branch information
Laoyang-01 committed Aug 19, 2024
1 parent ca6b5c5 commit 6cc0b65
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Java Maven CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '22'

- name: Build with Maven
run: mvn clean install

- name: Run tests
run: mvn test

0 comments on commit 6cc0b65

Please sign in to comment.