Skip to content

Commit

Permalink
Initial build CI workflow pipeline.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Jun 23, 2024
1 parent 23ff264 commit 43dc863
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'

- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-m2-
- name: Build with Maven
run: mvn clean install

- name: Run tests with Maven
run: mvn test

0 comments on commit 43dc863

Please sign in to comment.