Skip to content

Commit

Permalink
[#1] Add CI build with maven
Browse files Browse the repository at this point in the history
  • Loading branch information
opatrascoiu committed Jun 24, 2024
1 parent 02439d0 commit ec3d4db
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "build"

on:
[ push, pull_request ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'oracle'
java-version: '17'
- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.9.6
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 16
cache: 'npm'
- name: Display date
run: date
- name: Build with maven
run: mvn clean install --show-version --batch-mode --errors --update-snapshots

0 comments on commit ec3d4db

Please sign in to comment.