feat(baseuri): add baseuri-range config property to control servers the Agent will register with #794
Workflow file for this run
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: CI build and push | |
concurrency: | |
group: ci-${{ github.run_id }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- main | |
- v[0-9]+ | |
- v[0-9]+.[0-9]+ | |
- cryostat-v[0-9]+.[0-9]+ | |
pull_request_target: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- labeled | |
- unlabeled | |
branches: | |
- main | |
- v[0-9]+ | |
- v[0-9]+.[0-9]+ | |
- cryostat-v[0-9]+.[0-9]+ | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
JVM_version: ['11', '17', '21'] | |
if: ${{ github.repository_owner == 'cryostatio' }} | |
steps: | |
- name: Fail if PR and safe-to-test label NOT applied | |
if: ${{ github.event_name == 'pull_request_target' && !contains(github.event.pull_request.labels.*.name, 'safe-to-test') }} | |
run: exit 1 | |
- uses: actions/checkout@v2 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.event.pull_request.head.ref }} | |
submodules: true | |
- uses: actions/setup-java@v2 | |
with: | |
java-version: ${{ matrix.JVM_version }} | |
distribution: 'temurin' | |
- name: maven-settings | |
uses: s4u/maven-settings-action@v2 | |
with: | |
servers: '[{"id": "github", "username": "dummy", "password": "${env.GITHUB_TOKEN_REF}"}]' | |
githubServer: false | |
- uses: skjolber/maven-cache-github-action@v1 | |
with: | |
step: restore | |
- run: mvn -B -U clean verify | |
env: | |
GITHUB_TOKEN_REF: ${{ secrets.GH_PKGS_READ_TOKEN }} | |
- uses: skjolber/maven-cache-github-action@v1 | |
with: | |
step: save |