Skip to content

Commit 514fbc4

Browse files
authored
Create build.yml
1 parent 9fbcf13 commit 514fbc4

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/build.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- feature/*
8+
- refact/*
9+
- fix/*
10+
11+
env:
12+
MAVEN_OPTS: '-Dmaven.repo.local=/home/runner/work/./.m2/repository'
13+
14+
jobs:
15+
build-application:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
- name: JDK 11
21+
uses: actions/setup-java@v4
22+
with:
23+
java-version: '11'
24+
distribution: 'adopt'
25+
- name: Maven install
26+
run: |
27+
echo BUILDING PROJECT
28+
mvn clean install
29+
- name: Maven test
30+
run: |
31+
echo BUILDING PROJECT
32+
mvn test

0 commit comments

Comments
 (0)