-
Notifications
You must be signed in to change notification settings - Fork 513
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1046 from ianco/gha_tests
Add GHA workflow for aca-py integration tests
- Loading branch information
Showing
11 changed files
with
167 additions
and
26 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: acapy-integration-tests | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- main | ||
defaults: | ||
run: | ||
shell: bash | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
if: (github.event_name == 'pull_request' && github.repository == 'hyperledger/aries-cloudagent-python') || (github.event_name != 'pull_request') | ||
steps: | ||
- name: checkout-acapy | ||
uses: actions/checkout@v2 | ||
with: | ||
path: acapy | ||
- name: run-von-network | ||
uses: ./acapy/actions/run-von-network | ||
- name: run-indy-tails-server | ||
uses: ./acapy/actions/run-indy-tails-server | ||
- name: run-integration-tests | ||
uses: ./acapy/actions/run-integration-tests | ||
# to run with a specific set of tests include the following parameter: | ||
# with: | ||
# TEST_SCOPE: "-t @T001-RFC0037" |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: "Run Tails Server" | ||
description: "Build and Run Indy Tails Server" | ||
author: "iancostanzo@gmail.com" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: checkout-indy-tails-server | ||
run: git clone https://github.com/bcgov/indy-tails-server.git | ||
shell: bash | ||
- name: build-indy-tails-server | ||
run: ./manage build | ||
shell: bash | ||
working-directory: indy-tails-server/docker | ||
- name: run-indy-tails-server | ||
run: ./manage start | ||
shell: bash | ||
working-directory: indy-tails-server/docker | ||
branding: | ||
icon: "scissors" | ||
color: "purple" |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: "Run Aca-Py Integration Tests" | ||
description: "Run integration tests for Aca-Py" | ||
author: "iancostanzo@gmail.com" | ||
inputs: | ||
TEST_SCOPE: | ||
description: "Set of flags that defines the test scope" | ||
required: false | ||
default: "-t @GHA" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: run-integration-tests-acapy | ||
# to run with external ledger and tails server run as follows (and remove the ledger and tails actions from the workflow): | ||
# run: LEDGER_URL=http://test.bcovrin.vonx.io PUBLIC_TAILS_URL=https://tails.vonx.io ./run_bdd ${{ inputs.TEST_SCOPE }} | ||
run: ./run_bdd ${{ inputs.TEST_SCOPE }} | ||
shell: bash | ||
env: | ||
NO_TTY: "1" | ||
working-directory: acapy/demo | ||
branding: | ||
icon: "mic" | ||
color: "purple" |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: "Run von-network" | ||
description: "Build and run Indy network using von-network" | ||
author: "iancostanzo@gmail.com" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: checkout-von-network | ||
run: git clone https://github.com/bcgov/von-network.git | ||
shell: bash | ||
- name: build-von-network | ||
run: ./manage build | ||
shell: bash | ||
working-directory: von-network | ||
- name: run-von-network | ||
run: ./manage start | ||
shell: bash | ||
working-directory: von-network | ||
branding: | ||
icon: "cloud-lightning" | ||
color: "blue" |
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
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
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
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
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
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
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