Skip to content

Commit

Permalink
Add comments and rename exhaustive tests file
Browse files Browse the repository at this point in the history
  • Loading branch information
rp9-next committed Aug 22, 2024
1 parent be02f37 commit cab1977
Showing 1 changed file with 21 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# Copyright (C) 2016 and later: Unicode, Inc. and others.
# License & terms of use: http://www.unicode.org/copyright.html
#
# GitHub Actions configuration for Exhaustive Tests for ICU.
#
# Note: The exhaustive test configuration is in a separate file
# so that it can be run independently from the regular builds.
#
# To run these tests, comment on a PR with "run exhaustive tests"
# or manually trigger the workflow. If triggered from a PR comment,
# it adds checks to the PR and updates them with the results.

name: Exhaustive Tests for ICU

on:
Expand All @@ -10,6 +22,8 @@ permissions:
pull-requests: write

jobs:

# Runs exhaustive tests for ICU4J on Linux
icu4j-linux:
if: github.event.issue.pull_request != null &&
(contains(github.event_name, 'workflow_dispatch') ||
Expand All @@ -20,6 +34,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Fetch PR Details
id: pr-details
if: contains(github.event.comment.body, 'run exhaustive tests')
run: |
echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token
gh api "${{ github.event.issue.pull_request.url }}" > pr.json
Expand All @@ -29,6 +44,7 @@ jobs:
echo "SHA=$SHA" >> $GITHUB_ENV
- name: Add a check to the PR
id: add-check
if: contains(github.event.comment.body, 'run exhaustive tests')
run: |
WORKFLOW_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
echo $WORKFLOW_URL
Expand Down Expand Up @@ -56,7 +72,7 @@ jobs:
cd icu4j && cat `find . -name surefire-reports -type d -exec grep -l -r --include="*.txt" FAILED {} \;`
timeout-minutes: 2
- name: Complete the check
if: always()
if: always() && contains(github.event.comment.body, 'run exhaustive tests')
run: |
WORKFLOW_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
STATUS="completed"
Expand All @@ -75,14 +91,15 @@ jobs:
/repos/${{ github.repository_owner }}/${{ github.event.repository.name }}/check-runs/${{ env.CHECK_ID }}
icu4c-linux:
icu4c-linux-clang:
if: contains(github.event_name, 'workflow_dispatch') || contains(github.event.comment.body, 'run exhaustive tests')
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Fetch PR Details
id: pr-details
if: contains(github.event.comment.body, 'run exhaustive tests')
run: |
echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token
gh api "${{ github.event.issue.pull_request.url }}" > pr.json
Expand All @@ -92,6 +109,7 @@ jobs:
echo "SHA=$SHA" >> $GITHUB_ENV
- name: Add a check to the PR
id: add-check
if: contains(github.event.comment.body, 'run exhaustive tests')
run: |
WORKFLOW_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
echo $WORKFLOW_URL
Expand All @@ -118,7 +136,7 @@ jobs:
CC: clang
CXX: clang++
- name: Complete the check
if: always()
if: always() && contains(github.event.comment.body, 'run exhaustive tests')
run: |
WORKFLOW_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
STATUS="completed"
Expand Down

0 comments on commit cab1977

Please sign in to comment.