fix(deps): bump io.javaoperatorsdk:operator-framework from 4.8.3 to 4.9.0 #776
Workflow file for this run
This file contains hidden or 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: AWS DocumentDB | |
# This workflow builds and tests the Operator with Gradle. | |
on: | |
pull_request: | |
jobs: | |
test-aws-documentdb: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b #v4.1.5 | |
- name: Set up JDK | |
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1 | |
with: | |
distribution: 'temurin' | |
java-version: 21 | |
cache: 'gradle' | |
- name: Connect DocumentDB | |
env: | |
DDB_HOST: ${{ secrets.DDB_HOST }} # expected: sample-cluster.node.zone.docdb.amazonaws.com | |
DDB_HOSTS_MAP: ${{ secrets.DDB_HOSTS_MAP }} # expected: config for /etc/hosts including all propagated hostnames | |
DDB_EC2_FINGERPRINT: ${{ secrets.DDB_EC2_FINGERPRINT }} # expected: hostname.ec2.proxy.to.forward.com,123.123.123.123 ecdsa-sha2-nistp256 ... | |
DDB_EC2_USER_AND_HOST: ${{ secrets.DDB_EC2_USER_AND_HOST }} # expected: username@hostname.ec2.proxy.to.forward.com | |
DDB_EC2_CERTIFICATE: ${{ secrets.DDB_EC2_CERTIFICATE }} # expected: pem certificate | |
run: > | |
mkdir -p ~/.ssh && | |
echo "${DDB_EC2_FINGERPRINT}" >> ~/.ssh/known_hosts && | |
echo "${DDB_EC2_CERTIFICATE}" > ~/.ssh/pem && | |
chmod 700 ~/.ssh && | |
chmod 400 ~/.ssh/pem && | |
ssh -i ~/.ssh/pem -L "27017:${DDB_HOST}:27017" "${DDB_EC2_USER_AND_HOST}" -fN -M -S ddb-socket && | |
ssh -S ddb-socket -O check "${DDB_EC2_USER_AND_HOST}" && | |
sudo echo "${DDB_HOSTS_MAP}" | sudo tee -a /etc/hosts | |
- name: Test with Gradle | |
uses: nick-fields/retry@v3 | |
env: | |
# secrets required: | |
# - secrets.DDB_HOST # expected: sample-cluster.node.zone.docdb.amazonaws.com | |
# - secrets.DDB_USERNAME # expected: example-user | |
# - secrets.DDB_PASSWORD # expected: a-s3cr3t | |
TEST_MONGODB_CONNECTION_STRING: "mongodb://${{ secrets.DDB_USERNAME }}:${{ secrets.DDB_PASSWORD }}@${{ secrets.DDB_HOST }}/admin?tls=false&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false" | |
with: | |
timeout_minutes: 10 | |
max_attempts: 3 | |
retry_wait_seconds: 10 | |
warning_on_retry: true | |
command: ./gradlew --continue test | |
- name: Disconnect | |
if: always() | |
run: ssh -S ddb-socket -O exit 0 | |
- name: Clean | |
if: always() | |
run: rm -rf ~/.ssh |