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 e7b4387
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/api-and-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,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 +47,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 development "${{ 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 e7b4387

Please sign in to comment.