Skip to content

Added metadata for org.bouncycastle:bcpkix-jdk15to18:1.77 #1042

Added metadata for org.bouncycastle:bcpkix-jdk15to18:1.77

Added metadata for org.bouncycastle:bcpkix-jdk15to18:1.77 #1042

name: "Test changed metadata"
on:
pull_request:
branches:
- master
paths-ignore:
- '**.md'
- 'library-and-framework-list*.json'
concurrency:
group: "workflow = ${{ github.workflow }}, ref = ${{ github.event.ref }}, pr = ${{ github.event.pull_request.id }}"
cancel-in-progress: true
jobs:
get-changed-metadata:
if: github.repository == 'oracle/graalvm-reachability-metadata'
name: "📋 Get a list of all changed libraries"
runs-on: "ubuntu-20.04"
timeout-minutes: 5
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
none-found: ${{ steps.set-matrix.outputs.none-found }}
steps:
- name: "☁️ Checkout repository"
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: "🔧 Prepare environment"
uses: graalvm/setup-graalvm@v1
with:
java-version: '17'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: "🕸️ Populate matrix"
id: set-matrix
run: |
./gradlew generateMatrixDiffCoordinates -PbaseCommit=${{ github.event.pull_request.base.sha }} -PnewCommit=${{ github.event.pull_request.head.sha }}
test-changed-metadata:
name: "🧪 ${{ matrix.coordinates }} (GraalVM for JDK ${{ matrix.version }} @ ${{ matrix.os }})"
if: needs.get-changed-metadata.result == 'success' && needs.get-changed-metadata.outputs.none-found != 'true' && github.repository == 'oracle/graalvm-reachability-metadata'
runs-on: ${{ matrix.os }}
timeout-minutes: 20
needs: get-changed-metadata
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.get-changed-metadata.outputs.matrix) }}
steps:
- name: "☁️ Checkout repository"
uses: actions/checkout@v3
- name: "🔧 Setup java"
uses: actions/setup-java@v3
with:
distribution: 'oracle'
java-version: '17'
- name: "🔧 Prepare environment"
uses: graalvm/setup-graalvm@v1
with:
set-java-home: 'false'
java-version: ${{ matrix.version }}
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'
- name: "Pull allowed docker images"
run: |
./gradlew pullAllowedDockerImages --coordinates=${{ matrix.coordinates }}
- name: "Disable docker"
run: |
sudo apt-get install openbsd-inetd
sudo bash -c "cat ./.github/workflows/discard-port.conf >> /etc/inetd.conf"
sudo systemctl start inetd
sudo mkdir /etc/systemd/system/docker.service.d
sudo bash -c "cat ./.github/workflows/dockerd.service > /etc/systemd/system/docker.service.d/http-proxy.conf"
sudo systemctl daemon-reload
sudo systemctl restart docker
- name: "🔎 Check metadata config files content"
run: |
./gradlew checkConfigFiles --coordinates=${{ matrix.coordinates }}
- name: "🧪 Run '${{ matrix.coordinates }}' tests"
run: |
./gradlew test -Pcoordinates=${{ matrix.coordinates }}
all-metadata-passed:
name: "🧪 All metadata tests have passed"
runs-on: "ubuntu-20.04"
timeout-minutes: 1
if: ${{ always() }} && github.repository == 'oracle/graalvm-reachability-metadata'
needs: test-changed-metadata
steps:
- name: "All tests passed"
if: needs.test-changed-metadata.result == 'success'
run: exit 0
- name: "Some tests failed"
if: needs.test-changed-metadata.result == 'failure'
run: exit 1