mbien commented on code in PR #4431:
URL: https://github.com/apache/netbeans/pull/4431#discussion_r950865053


##########
.github/workflows/main.yml:
##########
@@ -27,65 +27,1286 @@ concurrency:
   group: ${{ github.head_ref || github.run_id }}-${{ github.base_ref }}
   cancel-in-progress: true
 
+env:
+
+  OPTS: >
+    
-Dmetabuild.jsonurl=https://raw.githubusercontent.com/apache/netbeans-jenkins-lib/master/meta/netbeansrelease.json
+    -Dtest-unit-sys-prop.ignore.random.failures=true
+
+  # flags for conditional, long running steps or jobs configurable with 
labels. If this is not a PR, everything will run.
+  # 'Java' label
+  test_java: ${{ contains(github.event.pull_request.labels.*.name, 'Java') || 
contains(github.event.pull_request.labels.*.name, 'ci:all-tests') || 
github.event_name != 'pull_request' }}
+
+  # 'JavaDoc' or 'API Change' labels
+  test_javadoc: ${{ contains(github.event.pull_request.labels.*.name, 
'JavaDoc') || contains(github.event.pull_request.labels.*.name, 'API Change') 
|| contains(github.event.pull_request.labels.*.name, 'ci:all-tests') || 
github.event_name != 'pull_request' }}
+
+  # 'JavaScript' label
+  test_javascript: ${{ contains(github.event.pull_request.labels.*.name, 
'JavaScript') || contains(github.event.pull_request.labels.*.name, 
'ci:all-tests') || github.event_name != 'pull_request' }}
+
+  # 'PHP' label
+  test_php: ${{ contains(github.event.pull_request.labels.*.name, 'PHP') || 
contains(github.event.pull_request.labels.*.name, 'ci:all-tests') || 
github.event_name != 'pull_request' }}
+
+  # 'Platform' label
+  test_platform: ${{ contains(github.event.pull_request.labels.*.name, 
'Platform') || contains(github.event.pull_request.labels.*.name, 
'ci:all-tests') || github.event_name != 'pull_request' }}
+
+  # 'Ant', 'Gradle', 'Maven' and 'MX' labels trigger build-tools job
+  # see job condition (env vars don't work for job conditions 
https://github.com/actions/runner/issues/1189 )
+
+  # special commands:
+  # 'ci:all-tests' enables everything
+  # 'ci:no-build' disables the build job (and test jobs too)

Review Comment:
   list of PR labels which influence CI steps/jobs



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to