Skip to content

Added integration tests for min.io #373

Added integration tests for min.io

Added integration tests for min.io #373

Workflow file for this run

name: CI Build
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: 11
cache: "maven"
- name: Set up Node 16
uses: actions/setup-node@v3
with:
node-version: 16
cache: "npm"
cache-dependency-path: extension/package-lock.json
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Cache Go modules
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('pom.xml') }}
restore-keys: |
${{ runner.os }}-go-
- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Enable testcontainer reuse
run: echo 'testcontainers.reuse.enable=true' > "$HOME/.testcontainers.properties"
- name: Create test_config.properties
run: |
echo "owner = ${{ secrets.AWS_TAG_OWNER }}" > test_config.properties
echo "s3CacheBucket = persistent-s3-vs-test-file-cache" >> test_config.properties
- name: Run tests and build with Maven
run: mvn --batch-mode --update-snapshots clean verify sonar:sonar --file pom.xml -DtrimStackTrace=false -Dsonar.organization=exasol -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: "eu-central-1"
- name: Upload generated class list to artifacts
uses: actions/upload-artifact@v3
with:
name: generated-classes.lst
path: target/generated-classes.lst
if: always()