-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.23 KB
/
test.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
---
name: Test
"on":
workflow_call:
inputs:
continue-on-error:
type: boolean
description: Allow a workflow run to pass when this workflow fails
required: false
default: false
jobs:
test:
name: Test
runs-on: ubuntu-latest
continue-on-error: ${{ inputs.continue-on-error }}
steps:
- name: Checkout
# yamllint disable-line rule:line-length
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Java
# yamllint disable-line rule:line-length
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
with:
distribution: temurin
# renovate: datasource=java-version depName=java
java-version: 17.0.10+7
- name: Test
# yamllint disable-line rule:line-length
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
with:
arguments: test jacocoTestReport
- name: Upload test coverage to Codecov
# yamllint disable-line rule:line-length
uses: codecov/codecov-action@e0b68c6749509c5f83f984dd99a76a1c1a231044 # v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}