Skip to content

Commit

Permalink
Merge pull request wildfly#17300 from jamezp/gha-ci-updates
Browse files Browse the repository at this point in the history
[WFLY-18673] GitHub Actions Run Reductions
  • Loading branch information
bstansberry authored Oct 24, 2023
2 parents 36f1eb1 + eba7b66 commit bf8bf25
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 34 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ on:
default: 120
type: number

# Only run the latest job
concurrency:
group: '${{ github.workflow }} @ ${{ github.head_ref || github.ref }}'
cancel-in-progress: true

jobs:
build:
name: Build and Test
Expand Down
42 changes: 11 additions & 31 deletions .github/workflows/build-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,21 @@ name: WildFly Build

on:
pull_request:
branches:
- '**'
paths:
- "**/pom.xml"

jobs:
build:
name: WildFly Build
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest ]
# Only run the latest job
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'temurin'
cache: 'maven'
- name: Clear any possible SNAPSHOT dependencies in the local maven repository
run: |
LOCAL_REPO="$HOME/.m2/repository"
echo "Cleaning SNAPSHOTS from $LOCAL_REPO"
if [ -d "$LOCAL_REPO" ]; then find "$LOCAL_REPO" -name "*SNAPSHOT*" | xargs -I {} rm -rfv "{}"; fi
shell: bash
- name: Build with Maven Java 11 - ${{ matrix.os }}
run: mvn clean install -U -B -DallTests -DskipTests
jobs:
quick-build:
name: WildFly Build -Dquickly
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest ]

steps:
- uses: actions/checkout@v4
Expand All @@ -52,5 +32,5 @@ jobs:
echo "Cleaning SNAPSHOTS from $LOCAL_REPO"
if [ -d "$LOCAL_REPO" ]; then find "$LOCAL_REPO" -name "*SNAPSHOT*" | xargs -I {} rm -rfv "{}"; fi
shell: bash
- name: Build with Maven Java 11 - ${{ matrix.os }} -Dquickly
- name: Build with Maven Java 11 -Dquickly
run: mvn -U -B -Dquickly
28 changes: 27 additions & 1 deletion .github/workflows/cloud-test-pr-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,32 @@ on:
pull_request_target:
branches:
- main
paths-ignore:
- ".mvn/**"
- "docs/**"
- ".github/workflows/build-manual.yml"
- ".github/workflows/shared-wildfly-build.yml"
- '.gitattributes'
- '.gitignore'
- '.gitleaks.toml'
- 'build.bat'
- 'build.sh'
- "CODE_OF_CONDUCT.md"
- "CONTRIBUTING.md"
- "integration-tests.bat"
- "integration-tests.sh"
- "LICENSE.txt"
- "mvnw"
- "mvnw.cmd"
- "README.md"
- "SECURITY.md"
- "**/README.md"
- "**/README.adoc"

# Only run the latest job
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
env:
# Repository where the cloud tests will be run
REPOSITORY: wildfly-extras/wildfly-cloud-tests
Expand Down Expand Up @@ -105,4 +131,4 @@ jobs:
exit 1
fi
echo -e "\e[32m${MESSAGE}\e[0m"
echo -e "\e[32m${MESSAGE}\e[0m"
4 changes: 3 additions & 1 deletion .github/workflows/dep-diff-pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ name: Dependency Tree Input Builder
on:
pull_request:
branches:
- main
- main
paths:
- "**/pom.xml"
env:
# The modules to check for dependencies. If there is more than one they are comma separated
MODULES_TO_CHECK: ee-feature-pack/galleon-shared,ee-feature-pack/galleon-local,galleon-pack/galleon-shared,galleon-pack/galleon-local,galleon-pack,ee-feature-pack/common,microprofile/galleon-common,servlet-feature-pack/common,elytron-oidc-client/galleon-common
Expand Down
51 changes: 50 additions & 1 deletion .github/workflows/jdk-jre-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,64 @@ on:
push:
branches:
- main
paths-ignore:
- ".mvn/**"
- "docs/**"
- ".github/workflows/build-manual.yml"
- ".github/workflows/shared-wildfly-build.yml"
- '.gitattributes'
- '.gitignore'
- '.gitleaks.toml'
- 'build.bat'
- 'build.sh'
- "CODE_OF_CONDUCT.md"
- "CONTRIBUTING.md"
- "integration-tests.bat"
- "integration-tests.sh"
- "LICENSE.txt"
- "mvnw"
- "mvnw.cmd"
- "README.md"
- "SECURITY.md"
- "**/README.md"
- "**/README.adoc"
pull_request:
branches:
- '**'
paths-ignore:
- ".mvn/**"
- "docs/**"
- ".github/workflows/build-manual.yml"
- ".github/workflows/shared-wildfly-build.yml"
- '.gitattributes'
- '.gitignore'
- '.gitleaks.toml'
- 'build.bat'
- 'build.sh'
- "CODE_OF_CONDUCT.md"
- "CONTRIBUTING.md"
- "integration-tests.bat"
- "integration-tests.sh"
- "LICENSE.txt"
- "mvnw"
- "mvnw.cmd"
- "README.md"
- "SECURITY.md"
- "**/README.md"
- "**/README.adoc"

# Only run the latest job
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

jobs:
wildfly-jre-build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: ['11', '17', '21-ea']
java: ['11', '17', '21']

steps:
- name: Checkout code
Expand Down

0 comments on commit bf8bf25

Please sign in to comment.