-
Notifications
You must be signed in to change notification settings - Fork 22
36 lines (30 loc) · 1.02 KB
/
build.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
# This workflow is triggered by pushing commits on branches and/or Pull Requests.
# It will not trigger for pushes to master but run every night to provide a nightly build status.
name: Build project with Maven
on:
pull_request:
push:
branches-ignore: [ master ]
schedule:
- cron: '2 2 * * 1-5' # run nightly builds everyday
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Java setup
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
cache: maven
- name: Run build
run: mvn -B -ntp clean install com.mycila:license-maven-plugin:check
- name: Run I-Tests and generate coverage reports
run: mvn -B -ntp -Pitest verify failsafe:verify
- name: Upload coverage to Codecov
if: (github.event_name == 'push' || github.event_name == 'schedule') && github.actor != 'dependabot[bot]'
uses: codecov/codecov-action@v5
with:
token: ${{secrets.CODECOV_TOKEN}}