File tree Expand file tree Collapse file tree 8 files changed +91
-236
lines changed Expand file tree Collapse file tree 8 files changed +91
-236
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 5
5
workflow_run :
6
6
workflows :
7
7
- test
8
+ - test-reporter
8
9
- update-specs
10
+ - release
9
11
types : [completed]
10
12
11
13
jobs :
Original file line number Diff line number Diff line change
1
+ name : release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - v?[0-9]+.[0-9]+.[0-9]+
7
+
8
+ permissions :
9
+ contents : write
10
+
11
+ jobs :
12
+ test :
13
+ uses : ./.github/workflows/test.yml
14
+ release :
15
+ needs :
16
+ - test
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - name : release
20
+ run : make -f .ci/Makefile release
21
+ env :
22
+ GITHUB_TOKEN : ${{ github.token }}
23
+ TAG_NAME : ${{ github.ref_name }}
24
+ notify :
25
+ runs-on : ubuntu-latest
26
+ if : always()
27
+ needs :
28
+ - release
29
+ steps :
30
+ - run : test $(echo '${{ toJSON(needs) }}' | jq -s 'map(.[].result) | all(.=="success")') = 'true'
31
+ - if : always()
32
+ uses : elastic/apm-pipeline-library/.github/actions/notify-build-status@current
33
+ with :
34
+ vaultUrl : ${{ secrets.VAULT_ADDR }}
35
+ vaultRoleId : ${{ secrets.VAULT_ROLE_ID }}
36
+ vaultSecretId : ${{ secrets.VAULT_SECRET_ID }}
37
+ slackChannel : " #apm-agent-php"
Original file line number Diff line number Diff line change
1
+ ---
2
+ # # Workflow to process the JUnit test results and add a report to the checks.
3
+ name : test-reporter
4
+ on :
5
+ workflow_run :
6
+ workflows :
7
+ - test
8
+ types :
9
+ - completed
10
+
11
+ jobs :
12
+ report :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : elastic/apm-pipeline-library/.github/actions/test-report@current
16
+ with :
17
+ artifact : test-results # artifact name
18
+ name : test-report # Name of the check run which will be created
19
+ path : " junit-*.xml" # Path to test results (inside artifact .zip)
20
+ reporter : java-junit # Format of test results
Original file line number Diff line number Diff line change @@ -13,7 +13,36 @@ permissions:
13
13
contents : read
14
14
15
15
jobs :
16
- hello :
16
+ sanity-checks :
17
17
runs-on : ubuntu-latest
18
18
steps :
19
- - run : echo "Hello, World!"
19
+ - uses : elastic/apm-pipeline-library/.github/actions/pre-commit@current
20
+ test :
21
+ strategy :
22
+ fail-fast : false
23
+ matrix :
24
+ php-image :
25
+ - 7.2-alpine
26
+ - 7.3-alpine
27
+ - 7.4-alpine
28
+ - 8.0-alpine
29
+ - 8.1-alpine
30
+ - 8.2-alpine
31
+ runs-on : ubuntu-latest
32
+ container : php:${{ matrix.php-image }}
33
+ steps :
34
+ - uses : actions/checkout@v3
35
+ - name : Append PATH
36
+ run : echo "${GITHUB_WORKSPACE}" >> $GITHUB_PATH
37
+ - name : Install composer
38
+ run : .ci/scripts/install-composer.sh
39
+ - name : Install dependencies
40
+ run : composer --no-progress install
41
+ - name : Run tests
42
+ env :
43
+ VERSION : ${{ matrix.php-image }}
44
+ run : composer test
45
+ - uses : actions/upload-artifact@v3
46
+ with :
47
+ name : test-results
48
+ path : junit-*.xml
Original file line number Diff line number Diff line change 6
6
- id : check-executables-have-shebangs
7
7
- id : check-merge-conflict
8
8
9
- - repo : git@ github.com: elastic/apm-pipeline-library
9
+ - repo : https:// github.com/ elastic/apm-pipeline-library
10
10
rev : current
11
11
hooks :
12
12
- id : check-bash-syntax
13
- - id : check-jenkins-pipelines
14
- - id : check-jjbb
You can’t perform that action at this time.
0 commit comments