Skip to content

Change testing

Change testing #2

name: acapy-integration-tests
on:
pull_request:
branches:
- main
types: [opened, synchronize, reopened, ready_for_review]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
test:
runs-on: ubuntu-latest
if: (github.event_name == 'pull_request' && github.event.pull_request.draft == false && github.repository == 'jamshale/aries-cloudagent-python') || (github.event_name != 'pull_request')
outputs:
is_release: ${{ steps.check_if_release.outputs.is_release }}
steps:
- name: checkout-acapy
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Request GitHub API for PR data
uses: octokit/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
id: get_pr_data
with:
route: GET /repos/${{ github.event.repository.full_name }}/pulls/${{ github.event.number }}
- name: Run Integration tests
run: |
# Get Minimal Agent
git clone https://github.com/Indicio-tech/acapy-minimal-example.git
# Copy custom integration tests to acapy-minimal-example
cp -a integration-tests/tests/. acapy-minimal-example/tests
cp -f integration-tests/Dockerfile acapy-minimal-example/Dockerfile
cp -f integration-tests/docker-compose.yml acapy-minimal-example/docker-compose.yml
ls -a acapy-minimal-example
echo "***********************************"
ls -a acapy-minimal-example/tests
echo "***********************************"
# Build the docker image for testing
docker build -t acapy-test -f docker/Dockerfile.run .
docker-compose run tests