-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (47 loc) · 1.57 KB
/
main.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
on:
pull_request:
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
jobs:
test-job:
runs-on: ubuntu-latest
name: Smoke test
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: |
19
20
- uses: gradle/gradle-build-action@v3
- id: build-lib
run: ./gradlew build
- id: copy-lib
if: github.event_name == 'pull_request'
run: cp ./build/libs/ftl-tests-results-r8.jar .
- id: ftl-tests-summary
if: github.event_name == 'pull_request'
uses: ./
with:
merged-results-file: "src/test/resources/results-with-errors-and-flakes.xml"
- uses: peter-evans/find-comment@v2
id: find_comment
if: github.event_name == 'pull_request'
with:
issue-number: ${{ github.event.pull_request.number }}
body-includes: "Smoke test"
- uses: peter-evans/create-or-update-comment@v3
if: ${{ steps.ftl-tests-summary.outputs.summary-markdown != null || steps.find_comment.outputs.comment-id != null }}
with:
body: |
Smoke test
${{ steps.ftl-tests-summary.outputs.summary-markdown }}
edit-mode: replace
comment-id: ${{ steps.find_comment.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
token: ${{ secrets.GITHUB_TOKEN }}