Skip to content

Update OpenSSL version to 3.5.5 in workflow #252

Update OpenSSL version to 3.5.5 in workflow

Update OpenSSL version to 3.5.5 in workflow #252

Workflow file for this run

name: Integration Tests
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- '*'
paths-ignore:
- '**/*.md'
- '**/*.jpg'
- '**/README.txt'
- '**/LICENSE.txt'
- 'docs/**'
- 'ISSUE_TEMPLATE/**'
- '**/remove-old-artifacts.yml'
- '**/build-installer.yml'
- '**/release.yml'
env:
BUILD_TYPE: Release
concurrency:
group: environment-${{ github.ref }}
cancel-in-progress: true
permissions:
id-token: write
contents: read
jobs:
integration-tests:
strategy:
matrix:
engine_version: ["lts", "latest"]
name: Integration Tests
runs-on: ubuntu-latest
env:
CMAKE_GENERATOR: Unix Makefiles
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Install build dependencies
run: sudo apt-get update && sudo apt-get install libcurl4 && sudo apt-get install libcurl4-openssl-dev
- name: Cache AWS SDK libraries
id: cache-dynamic-aws-sdk
uses: actions/cache@v4
with:
path: |
aws_sdk
key: ${{ runner.os }}-aws-sdk-dynamic-lib
- name: 'Set up JDK'
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 17
- name: 'Configure AWS Credentials'
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ secrets.AWS_DEFAULT_REGION }}
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ secrets.AWS_DEPLOY_ROLE }}
role-session-name: mysql-linux-integration
- name: 'Run Integration Tests'
working-directory: ${{ github.workspace }}/testframework
run: |
./gradlew --no-parallel --no-daemon test-failover --info
env:
TEST_DSN: awsmysqlodbca
TEST_USERNAME: ${{ secrets.TEST_USERNAME }}
TEST_PASSWORD: ${{ secrets.TEST_PASSWORD }}
DB_ENGINE_VERSION: ${{ matrix.engine_version }}
RDS_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
DRIVER_PATH: ${{ github.workspace }}
- name: 'Get Github Action IP'
if: always()
id: ip
run: echo "ipv4=$(curl -s https://checkip.amazonaws.com)" >> $GITHUB_OUTPUT
- name: 'Remove Github Action IP'
if: always()
run: |
aws ec2 revoke-security-group-ingress \
--group-name default \
--protocol tcp \
--port 3306 \
--cidr ${{ steps.ip.outputs.ipv4 }}/32 \
2>&1 > /dev/null;
- name: 'Display and save log'
if: always()
working-directory: ${{ github.workspace }}
run: |
echo "Displaying logs"
mkdir -p ./reports/tests
if [[ -f myodbc.log && -s myodbc.log ]]; then
cat myodbc.log
cp myodbc.log ./reports/tests/myodbc.log
fi
- name: 'Archive log results'
if: always()
uses: actions/upload-artifact@v4
with:
name: 'integration-test-logs-${{ matrix.engine_version }}'
path: reports/tests/
retention-days: 3