chore(deps): update dependency @types/jasmine to ~4.6.0 #369
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: 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 | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
########################################################################## | |
build: | |
needs: [cache] | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest] | |
runs-on: ${{ matrix.os }} | |
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: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh | |
shell: bash | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- 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: Initialize | |
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- 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: Initialize | |
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- 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: Initialize | |
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- 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: Initialize | |
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh | |
- 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 ${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: Initialize | |
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Run Tests | |
run: ./ci/tests/run-tests-simple.sh | |
########################################################################## | |