Skip to content

Commit

Permalink
CI: run API/int. tests with right Docker setup
Browse files Browse the repository at this point in the history
Use release branch when testing release branch version of ruleset
with Docker setup.
  • Loading branch information
stsnel committed Mar 4, 2024
1 parent 21095bd commit 1b03450
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/api-and-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- development
- release-1.9
pull_request:

jobs:
Expand All @@ -24,6 +25,17 @@ jobs:
with:
python-version: 3.8

# For release branches that have a Docker setup, we use the Docker setup version of that release.
# For other branches, we use the Docker setup of the development branch.
- name: Determine Yoda repository branch
run: |
if [ "${{ steps.extract_branch.outputs.branch }}" = "release-1.9" ]; then
echo "branch=release-1.9" >> $GITHUB_OUTPUT
else
echo "branch=development" >> $GITHUB_OUTPUT
fi
id: yoda_repo_branch

- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
Expand All @@ -36,7 +48,7 @@ jobs:
- name: Clone Yoda repo for Docker Setup
run: |
git clone -b development --single-branch https://github.com/UtrechtUniversity/yoda.git
git clone -b "${{ steps.yoda_repo_branch.outputs.branch }}" --single-branch https://github.com/UtrechtUniversity/yoda.git
- name: Prepare hosts file for API tests
run: |
Expand Down

0 comments on commit 1b03450

Please sign in to comment.