chore(deps): update dependency jasmine-core to v5 #556
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CAS | |
env: | |
JAVA_OPTS: "-Xms512m -Xmx6048m -Xss128m -XX:ReservedCodeCacheSize=512m -server -XX:+UseG1GC" | |
GRADLE_OPTS: "-Xms512m -Xmx6048m -Xss128m -XX:ReservedCodeCacheSize=512m -server -XX:+UseG1GC" | |
TERM: xterm-256color | |
SONATYPE_PWD: ${{ secrets.SONATYPE_PWD }} | |
SONATYPE_USER: ${{ secrets.SONATYPE_USER }} | |
GH_TOKEN: ${{ secrets.GH_PAGES_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
JDK_DISTRIBUTION: "corretto" | |
JDK_CURRENT: 21 | |
DOCS_BRANCH: 7.0.x | |
########################################################################## | |
on: | |
push: | |
branches: [ 7.0.x ] | |
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: | |
initialize: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ env.JDK_CURRENT }} | |
distribution: ${{ env.JDK_DISTRIBUTION }} | |
- name: Initialize | |
run: ls ./ci && chmod -R 777 ./ci/*.sh && ./ci/init-build.sh | |
########################################################################## | |
cache: | |
runs-on: macos-latest | |
needs: [initialize] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ env.JDK_CURRENT }} | |
distribution: ${{ env.JDK_DISTRIBUTION }} | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Initialize | |
run: ls ./ci && chmod -R 777 ./ci/*.sh && ./ci/init-build.sh | |
- uses: actions/checkout@v4 | |
- name: Download Dependencies | |
run: ./ci/download-dependencies.sh | |
########################################################################## | |
build: | |
needs: [cache] | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ env.JDK_CURRENT }} | |
distribution: ${{ env.JDK_DISTRIBUTION }} | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Initialize | |
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh | |
shell: bash | |
- name: Build with Gradle | |
run: ./ci/build.sh | |
########################################################################## | |
static-analysis: | |
runs-on: macos-latest | |
needs: [build] | |
continue-on-error: true | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ env.JDK_CURRENT }} | |
distribution: ${{ env.JDK_DISTRIBUTION }} | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Initialize | |
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh | |
- name: Run Static Analysis | |
run: ./ci/analyze-style.sh | |
########################################################################## | |
validate-javadocs: | |
runs-on: macos-latest | |
needs: [build] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ env.JDK_CURRENT }} | |
distribution: ${{ env.JDK_DISTRIBUTION }} | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Initialize | |
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh | |
- name: Validate Javadocs | |
run: ./ci/build-javadocs.sh | |
########################################################################## | |
publish-snapshots: | |
runs-on: macos-latest | |
needs: [cache] | |
if: ${{ github.event_name == 'push' }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ env.JDK_CURRENT }} | |
distribution: ${{ env.JDK_DISTRIBUTION }} | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Initialize | |
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh | |
- name: Publish SNAPSHOTs | |
if: ${{ env.SONATYPE_USER != null && env.SONATYPE_PWD != null }} | |
run: ./ci/publish-snapshots-release.sh | |
########################################################################## | |
publish-docs: | |
runs-on: macos-latest | |
if: ${{ github.event_name == 'push' }} | |
needs: [cache] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ env.JDK_CURRENT }} | |
distribution: ${{ env.JDK_DISTRIBUTION }} | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Initialize | |
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh | |
- name: Publish Documentation | |
run: ./ci/push-docs-ghpages.sh ${DOCS_BRANCH} | |
########################################################################## | |
tests: | |
needs: [cache] | |
continue-on-error: false | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ env.JDK_CURRENT }} | |
distribution: ${{ env.JDK_DISTRIBUTION }} | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Initialize | |
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh | |
- name: Run Tests | |
run: ./ci/tests/run-tests-simple.sh |