microsoft/gctoolkit

Public

mirrored fromhttps://github.com/microsoft/gctoolkitAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
gctoolkit-2.0.3

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/workflows/maven.yml

77lines · modecode

1# This workflow will build a Java project with Maven
2# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3
4name: GCToolKit build with Maven
5
6on:
7 push:
8 branches: [ main ]
9 pull_request:
10 branches: [ main ]
11
12jobs:
13 build:
14
15 runs-on: ubuntu-latest
16
17 steps:
18 - uses: actions/checkout@v2
19
20 - name: Cache Maven
21 uses: actions/cache@v2.1.4
22 with:
23 path: ~/.m2/repository
24 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
25 restore-keys: ${{ runner.os }}-m2
26
27 - name: Set up JDK 11
28 uses: actions/setup-java@v2
29 with:
30 java-version: '11'
31 distribution: 'adopt'
32 server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
33 settings-path: ${{ github.workspace }} # location for the settings.xml file
34
35 - name: Build with Maven
36 run: ./mvnw -B package --file pom.xml --settings $GITHUB_WORKSPACE/settings.xml
37 #run: ./mvnw -B package -Pcontributor --file pom.xml --settings $GITHUB_WORKSPACE/settings.xml
38 env:
39 GITHUB_TOKEN: ${{ github.token }}
40
41 #- name: Generate JaCoCo Badges for core/api
42 # id: coreApi
43 # uses: cicirello/jacoco-badge-generator@v2
44 # with:
45 # generate-branches-badge: true
46 # jacoco-csv-file: core/api/target/site/jacoco/jacoco.csv
47 # coverage-badge-filename: jacoco-api-coverage.svg
48 # branches-badge-filename: jacoco-api-branches.svg
49
50 #- name: Generate JaCoCo Badges for core/parser
51 # id: coreParser
52 # uses: cicirello/jacoco-badge-generator@v2
53 # with:
54 # generate-branches-badge: true
55 # jacoco-csv-file: core/parser/target/site/jacoco/jacoco.csv
56 # coverage-badge-filename: jacoco-parser-coverage.svg
57 # branches-badge-filename: jacoco-parser-branches.svg
58#
59 #- name: Generate JaCoCo Badges for core/vertx
60 # id: coreVertx
61 # uses: cicirello/jacoco-badge-generator@v2
62 # with:
63 # generate-branches-badge: true
64 # jacoco-csv-file: core/vertx/target/site/jacoco/jacoco.csv
65 # coverage-badge-filename: jacoco-vertx-coverage.svg
66 # branches-badge-filename: jacoco-vertx-branches.svg
67#
68 #- name: Auto Commit the badge (if it changed)
69 # # Do not run this for pull_request events as it fails with the message:
70 # # error: pathspec 'refs/pull/50/merge' did not match any file(s) known to git
71 # if: ${{ !startsWith(github.event_name, 'pull_request') }}
72 # uses: stefanzweifel/git-auto-commit-action@v4
73 # with:
74 # commit_message: Autogenerated JaCoCo coverage badge
75 # file_pattern: .github/badges/*.svg
76 # env:
77 # GITHUB_TOKEN: ${{ github.token }}
78