File tree Expand file tree Collapse file tree 4 files changed +90
-80
lines changed
Expand file tree Collapse file tree 4 files changed +90
-80
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -29,17 +29,18 @@ jobs:
2929
3030 # Initializes the CodeQL tools for scanning.
3131 - name : Initialize CodeQL
32- uses : github/codeql-action/init@v2
32+ uses : github/codeql-action/init@v3
3333 with :
3434 languages : ${{ matrix.language }}
3535 # If you wish to specify custom queries, you can do so here or in a config file.
3636 # By default, queries listed here will override any specified in a config file.
3737 # Prefix the list here with "+" to use these queries and those in the config file.
3838 # queries: ./path/to/local/query, your-org/your-repo/queries@main
3939
40- - uses : actions/checkout@v2
40+ - name : Checkout code
41+ uses : actions/checkout@v4
4142 - name : Set up JDK 8
42- uses : actions/setup-java@v2
43+ uses : actions/setup-java@v4
4344 with :
4445 distribution : ' zulu'
4546 java-version : ' 8'
4950 run : ./mvnw clean compile assembly:single
5051
5152 - name : Perform CodeQL Analysis
52- uses : github/codeql-action/analyze@v2
53+ uses : github/codeql-action/analyze@v3
Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ pull_request :
6+
7+ permissions : read-all
8+
9+ jobs :
10+ lint :
11+ name : Lint (OpenJDK 8)
12+ runs-on : ubuntu-latest
13+ timeout-minutes : 5
14+
15+ steps :
16+ - name : Checkout code
17+ uses : actions/checkout@v4
18+
19+ - name : Set up JDK 8
20+ uses : actions/setup-java@v4
21+ with :
22+ java-version : ' 8'
23+ distribution : ' temurin'
24+
25+ - name : Cache Maven packages
26+ uses : actions/cache@v4
27+ with :
28+ path : ~/.m2
29+ key : ${{ runner.os }}-m2-${{ github.ref }}-${{ hashFiles('**/pom.xml') }}-lint
30+ restore-keys : |
31+ ${{ runner.os }}-m2-${{ github.ref }}-
32+ ${{ runner.os }}-m2-
33+
34+ - name : Run lint
35+ run : ./mvnw verify -B -Dhttps.protocols=TLSv1.2 -DskipTests
36+
37+ test :
38+ name : Test (OpenJDK ${{ matrix.java-version }})
39+ runs-on : ubuntu-latest
40+ timeout-minutes : 15
41+ strategy :
42+ matrix :
43+ java-version :
44+ - 8
45+ - 11
46+ - 16
47+ - 17
48+ - 19
49+
50+ steps :
51+ - name : Checkout code
52+ uses : actions/checkout@v4
53+
54+ - name : Set up JDK ${{ matrix.java-version }}
55+ uses : actions/setup-java@v4
56+ with :
57+ java-version : ${{ matrix.java-version }}
58+ distribution : ' temurin'
59+
60+ - name : Cache Maven packages
61+ uses : actions/cache@v4
62+ with :
63+ path : ~/.m2
64+ key : ${{ runner.os }}-m2-${{ github.ref }}-${{ hashFiles('**/pom.xml') }}
65+ restore-keys : |
66+ ${{ runner.os }}-m2-${{ github.ref }}-
67+ ${{ runner.os }}-m2-
68+
69+ - name : Set up Docker
70+ uses : docker/setup-docker-action@v4
71+
72+ - name : Run tests
73+ run : ./mvnw test -B -Dhttps.protocols=TLSv1.2 -Dcheckstyle.skip=true -Dtests.log_level=info -Djdk.attach.allowAttachSelf=true
74+
75+ - name : Show test logs on failure
76+ if : failure()
77+ run : |
78+ echo "Test failed. Showing surefire reports:"
79+ for log in target/surefire-reports/*.txt; do
80+ if [ -f "$log" ]; then
81+ echo "$log ========================"
82+ cat "$log"
83+ fi
84+ done
Original file line number Diff line number Diff line change 1- [ ![ Build Status] ( https://circleci .com/gh/ DataDog/jmxfetch. svg?style=svg )] ( https://app.circleci. com/pipelines/github/ DataDog/jmxfetch )
1+ [ ![ Build Status] ( https://github .com/DataDog/jmxfetch/actions/workflows/test.yml/badge. svg )] ( https://github. com/DataDog/jmxfetch/actions/workflows/test.yml )
22
33# [ Change log] ( https://github.com/DataDog/jmxfetch/blob/master/CHANGELOG.md )
44
You can’t perform that action at this time.
0 commit comments