forked from openwallet-foundation/acapy-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: jamshale <[email protected]>
- Loading branch information
Showing
2 changed files
with
33 additions
and
20 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,22 +16,25 @@ jobs: | |
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
#---------------------------------------------- | ||
# Get docker compose | ||
#---------------------------------------------- | ||
- name: Initialize Docker Compose | ||
uses: isbang/[email protected] | ||
#---------------------------------------------- | ||
# Get changed files | ||
#---------------------------------------------- | ||
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/changed-files@v40 | ||
- name: Initialize Docker Compose | ||
uses: isbang/[email protected] | ||
#---------------------------------------------- | ||
# Run integration tests for changed plugins | ||
# Get changed plugins | ||
#---------------------------------------------- | ||
- name: Run integration tests | ||
id: integration-tests | ||
- name: Get changed plugins | ||
id: changed-plugins | ||
run: | | ||
# This will navigate to each subdirectory and perform integration tests | ||
# If we have a directory that isn't a plugin then it will need to skip it. Currently there is none. | ||
# Collects all the plugin names that have changes. | ||
# If there is directory that isn't a plugin then it will need to skip it. Currently there is none. | ||
declare -a changed_dirs=() | ||
for dir in ./*/; do | ||
current_folder=$(basename "$dir") | ||
|
@@ -44,8 +47,15 @@ jobs: | |
done | ||
done | ||
echo "changed-plugins=${changed_dirs[*]}" >> $GITHUB_OUTPUT | ||
for dir in ${changed_dirs[*]}; do | ||
#---------------------------------------------- | ||
# Get changed plugins | ||
#---------------------------------------------- | ||
- name: Run Integration Tests | ||
id: integration-tests | ||
run: | | ||
for dir in ${{ steps.changed-plugins.outputs.changed-plugins }}; do | ||
echo "Running integration tests for $dir" | ||
cd $dir/integration | ||
docker compose build | ||
|
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