Skip to content

Commit

Permalink
update build
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoayyed committed Jan 21, 2024
1 parent 3b6fedb commit 2859bf2
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 94 deletions.
41 changes: 0 additions & 41 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

2 changes: 0 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ First off, thank you for considering to contribute to CAS.
# Details
Closes #IssueNumber
Ensure that you include the following:
- [] Brief description of changes applied
Expand Down
80 changes: 38 additions & 42 deletions .github/workflows/mgmt-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ env:
GH_TOKEN: ${{ secrets.GH_PAGES_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JDK_CURRENT: 21
DOCS_BRANCH: 7.0.x

##########################################################################

Expand All @@ -18,43 +19,40 @@ on:
pull_request:
branches: [ 7.0.x ]

concurrency:
group: "workflow = ${{ github.workflow }}, ref = ${{ github.event.ref }}, pr = ${{ github.event.pull_request.id }}"
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.repository != 'apereo/cas-management' }}

##########################################################################

jobs:
cancel-previous-runs:
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
initialize:
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: ${{ env.JDK_CURRENT }}
- name: Initialize
run: ls ./ci && chmod -R 777 ./ci/*.sh && ./ci/init-build.sh

##########################################################################
cache:
runs-on: ubuntu-latest
runs-on: macos-latest
needs: [initialize]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: ${{ env.JDK_CURRENT }}
- name: Initialize
run: ls ./ci && chmod -R 777 ./ci/*.sh && ./ci/init-build.sh
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Download Dependencies
run: ./ci/download-dependencies.sh
- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
Expand All @@ -68,20 +66,18 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
os: [macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: ${{ env.JDK_CURRENT }}
- name: Initialize
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh
shell: bash
- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
Expand All @@ -93,18 +89,18 @@ jobs:
##########################################################################

static-analysis:
runs-on: ubuntu-latest
runs-on: macos-latest
needs: [build]
continue-on-error: true
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: ${{ env.JDK_CURRENT }}
- name: Initialize
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh
- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
Expand All @@ -116,17 +112,17 @@ jobs:
##########################################################################

validate-javadocs:
runs-on: ubuntu-latest
runs-on: macos-latest
needs: [build]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: ${{ env.JDK_CURRENT }}
- name: Initialize
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh
- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
Expand All @@ -138,18 +134,18 @@ jobs:
##########################################################################

publish-snapshots:
runs-on: ubuntu-latest
runs-on: macos-latest
needs: [cache]
if: ${{ github.event_name == 'push' }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: ${{ env.JDK_CURRENT }}
- name: Initialize
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh
- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
Expand All @@ -162,41 +158,41 @@ jobs:
##########################################################################

publish-docs:
runs-on: ubuntu-latest
runs-on: macos-latest
if: ${{ github.event_name == 'push' }}
needs: [cache]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: ${{ env.JDK_CURRENT }}
- name: Initialize
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh
- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Publish Documentation
run: ./ci/push-docs-ghpages.sh 6.6.x
run: ./ci/push-docs-ghpages.sh ${DOCS_BRANCH}

##########################################################################

tests:
needs: [cache]
continue-on-error: false
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: ${{ env.JDK_CURRENT }}
- name: Initialize
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh
- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
Expand Down
4 changes: 2 additions & 2 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pull_request_rules:
- name: automatic merge
conditions:
- status-success=build (ubuntu-latest)
- status-success=build (macos-latest)
- status-success=WIP
- "#changes-requested-reviews-by=0"
- base=master
Expand All @@ -10,4 +10,4 @@ pull_request_rules:
merge:
method: merge
update:
delete_head_branch:
delete_head_branch:
7 changes: 0 additions & 7 deletions install.sh

This file was deleted.

0 comments on commit 2859bf2

Please sign in to comment.