Skip to content

Commit d1a5387

Browse files
committed
Remove all outstanding checks for closed-sourced repo
1 parent bf1e18b commit d1a5387

File tree

3 files changed

+39
-42
lines changed

3 files changed

+39
-42
lines changed

.github/workflows/ci.yml

+6-7
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ on:
1515
jobs:
1616
check-for-pr:
1717
runs-on: ubuntu-latest
18-
if: endsWith(github.repository, 'java-profiler-library')
1918
outputs:
2019
skip: ${{ steps.check.outputs.skip }}
2120
steps:
@@ -39,7 +38,7 @@ jobs:
3938
4039
test-linux-glibc:
4140
needs: check-for-pr
42-
if: endsWith(github.repository, 'java-profiler-library') && !needs.check-for-pr.outputs.skip
41+
if: needs.check-for-pr.outputs.skip != 'true'
4342
strategy:
4443
matrix:
4544
java_version: [8u362+9, 11.0.18+10, 17.0.6+10, 20.0.1+10]
@@ -95,7 +94,7 @@ jobs:
9594

9695
test-ubuntu-jdk:
9796
needs: check-for-pr
98-
if: endsWith(github.repository, 'java-profiler-library') && !needs.check-for-pr.outputs.skip
97+
if: needs.check-for-pr.outputs.skip != 'true'
9998
strategy:
10099
matrix:
101100
java_version: [11, 17]
@@ -152,7 +151,7 @@ jobs:
152151

153152
test-linux-glibc-j9:
154153
needs: check-for-pr
155-
if: endsWith(github.repository, 'java-profiler-library') && !needs.check-for-pr.outputs.skip
154+
if: needs.check-for-pr.outputs.skip != 'true'
156155
strategy:
157156
matrix:
158157
java_version: [8, 11, 17]
@@ -201,7 +200,7 @@ jobs:
201200

202201
test-linux-glibc-oracle8:
203202
needs: check-for-pr
204-
if: endsWith(github.repository, 'java-profiler-library') && !needs.check-for-pr.outputs.skip
203+
if: needs.check-for-pr.outputs.skip != 'true'
205204
strategy:
206205
matrix:
207206
minfo_cache: [ 'none', 'transient', 'full' ]
@@ -261,7 +260,7 @@ jobs:
261260

262261
test-linux-musl:
263262
needs: check-for-pr
264-
if: endsWith(github.repository, 'java-profiler-library') && !needs.check-for-pr.outputs.skip
263+
if: needs.check-for-pr.outputs.skip != 'true'
265264
strategy:
266265
matrix:
267266
java_version: [8u362+9, 11.0.18+10, 17.0.6+10, 20.0.1+10]
@@ -324,7 +323,7 @@ jobs:
324323

325324
test-linux-glibc-zing:
326325
needs: check-for-pr
327-
if: endsWith(github.repository, 'java-profiler-library') && !needs.check-for-pr.outputs.skip
326+
if: needs.check-for-pr.outputs.skip != 'true'
328327
strategy:
329328
matrix:
330329
java_version: [ 8, 11, 17 ]

.github/workflows/codecheck.yml

+33-33
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
scan-build:
12-
if: endsWith(github.repository, 'java-profiler-library') && !needs.check-for-pr.outputs.skip
12+
if: needs.check-for-pr.outputs.skip != 'true'
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v3
@@ -48,7 +48,7 @@ jobs:
4848
comment-file: 'comment.html'
4949

5050
cppcheck:
51-
if: endsWith(github.repository, 'java-profiler-library') && !needs.check-for-pr.outputs.skip
51+
if: needs.check-for-pr.outputs.skip != 'true'
5252
runs-on: ubuntu-latest
5353
steps:
5454
- uses: actions/checkout@v3
@@ -88,34 +88,34 @@ jobs:
8888
comment-id: "cppcheck"
8989
commenter: "pr-comment-cppcheck"
9090
comment-file: 'comment.html'
91-
# codeql:
92-
# if: endsWith(github.repository, 'java-profiler-library') && !needs.check-for-pr.outputs.skip
93-
# runs-on: ubuntu-latest
94-
# permissions:
95-
# actions: read
96-
# contents: read
97-
# security-events: write
98-
#
99-
# strategy:
100-
# fail-fast: false
101-
# matrix:
102-
# language: [ 'cpp', 'java' ]
103-
# # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
104-
# # Learn more about CodeQL language support at https://git.io/codeql-language-support
105-
#
106-
# steps:
107-
# - name: Checkout repository
108-
# uses: actions/checkout@v2
109-
#
110-
# # Initializes the CodeQL tools for scanning.
111-
# - name: Initialize CodeQL
112-
# uses: github/codeql-action/init@v2
113-
# with:
114-
# languages: ${{ matrix.language }}
115-
# # If you wish to specify custom queries, you can do so here or in a config file.
116-
# # By default, queries listed here will override any specified in a config file.
117-
# # Prefix the list here with "+" to use these queries and those in the config file.
118-
# # queries: ./path/to/local/query, your-org/your-repo/queries@main
119-
# - run: ./gradlew -x test assembleJar
120-
# - name: Perform CodeQL Analysis
121-
# uses: github/codeql-action/analyze@v2
91+
codeql:
92+
if: needs.check-for-pr.outputs.skip != 'true'
93+
runs-on: ubuntu-latest
94+
permissions:
95+
actions: read
96+
contents: read
97+
security-events: write
98+
99+
strategy:
100+
fail-fast: false
101+
matrix:
102+
language: [ 'cpp', 'java' ]
103+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
104+
# Learn more about CodeQL language support at https://git.io/codeql-language-support
105+
106+
steps:
107+
- name: Checkout repository
108+
uses: actions/checkout@v2
109+
110+
# Initializes the CodeQL tools for scanning.
111+
- name: Initialize CodeQL
112+
uses: github/codeql-action/init@v2
113+
with:
114+
languages: ${{ matrix.language }}
115+
# If you wish to specify custom queries, you can do so here or in a config file.
116+
# By default, queries listed here will override any specified in a config file.
117+
# Prefix the list here with "+" to use these queries and those in the config file.
118+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
119+
- run: ./gradlew -x test assembleJar
120+
- name: Perform CodeQL Analysis
121+
uses: github/codeql-action/analyze@v2

.gitlab-ci.yml

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# Triggers a build within the Datadog infrastructure in the ddprof-build repository
22
trigger_internal_build:
33
rules:
4-
- if: $CI_PROJECT_NAME =~ /java-profiler$/
5-
when: never
64
- if: $CI_COMMIT_BRANCH =~ /release\/.*/
75
when: never
86
- when: always

0 commit comments

Comments
 (0)