This repository has been archived by the owner on Jan 9, 2025. It is now read-only.
forked from adriens/opt-temps-attente-agences-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (52 loc) · 1.6 KB
/
maven.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Build
on: [push]
jobs:
build:
permissions:
checks: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
cache: 'maven'
- name: Build, Test
run: mvn -B install
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: matrix.jdk == 8
with:
files: target/surefire-reports/*.xml
conventional-commits-versionning-and-docker:
needs: [build]
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')
name: Bump version and create release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
cache: 'maven'
- name: Install NodeJS
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install Semantic release
run: |
npm install -g semantic-release \
@semantic-release/exec \
@semantic-release/git \
@semantic-release/changelog
- name: Run semantic release to bump version and create release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}