Skip to content

Commit 179f4bd

Browse files
authored
Merge pull request #3 from mobiuscode-com/copilot/add-github-action-build-tests
Add GitHub Actions CI workflow for builds and tests
2 parents 6302b65 + 9336371 commit 179f4bd

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI Build and Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Set up JDK 17
19+
uses: actions/setup-java@v4
20+
with:
21+
java-version: '17'
22+
distribution: 'corretto'
23+
24+
- name: Build with Maven
25+
run: mvn --batch-mode clean compile
26+
27+
- name: Run tests
28+
run: mvn --batch-mode test

0 commit comments

Comments
 (0)