-
Notifications
You must be signed in to change notification settings - Fork 9
60 lines (55 loc) · 1.31 KB
/
ci.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
59
60
name: ci
on:
pull_request:
paths-ignore:
- "**/*.asciidoc"
- "**/*.md"
- "**/*.png"
push:
branches:
- main
paths-ignore:
- "**/*.asciidoc"
- "**/*.md"
- "**/*.png"
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: lint
run: ./gradlew lint
- name: Verify OSS compliance
run: ./gradlew verifyNoticeFile
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: ./gradlew assemble
- name: Test
run: ./tests.sh
- name: Store test results
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: test-results
path: |
**/build/test-results/testRelease*/TEST-*.xml
**/build/test-results/test/TEST-*.xml
# The very last job to report whether the Workflow passed.
# This will act as the Branch Protection gatekeeper
ci:
if: always()
runs-on: ubuntu-latest
needs:
- lint
- test
steps:
- id: check
uses: elastic/apm-pipeline-library/.github/actions/check-dependent-jobs@current
with:
needs: ${{ toJSON(needs) }}
- run: ${{ steps.check.outputs.isSuccess }}