Add latest Docker-DB versions #969
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: Test DB Versions with all tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
get_exasol_versions: | |
uses: ./.github/workflows/get_exasol_versions.yml | |
test-db-versions-all-tests: | |
needs: get_exasol_versions | |
strategy: | |
fail-fast: false | |
matrix: | |
exasol_version: ${{fromJson(needs.get_exasol_versions.outputs.matrix)}} | |
runs-on: ubuntu-latest | |
name: Run all tests for Exasol ${{ matrix.exasol_version }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/prepare_poetry_env | |
- name: Fail, because not all tests are activated | |
run: | | |
git fetch | |
GIT_LOG="$(git log --pretty=oneline --abbrev-commit ${{ github.event.after }} | head -n 1)" | |
echo "$GIT_LOG" | |
if [[ "$GIT_LOG" == *"[run all tests]"* ]]; then | |
echo "All tests activated" | |
exit 0 | |
else | |
echo "Fail, because not all tests are deactivated" | |
exit 1 | |
fi | |
env: | |
EXASOL_VERSION: "${{ matrix.exasol_version }}" | |
# We want to deactivate running all tests only for pull_requests | |
if: ${{ github.event_name == 'pull_request' }} | |
- name: Run all tests | |
run: poetry run nox -s "run-tests(db_version='${{ matrix.exasol_version }}')" |