Add FSAT appdev E2E test

Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com>
This commit is contained in:
Josh Kneubuhl 2022-11-11 10:56:19 -05:00 committed by Dave Enyeart
parent 60a61b8241
commit 34734cfff2
3 changed files with 19 additions and 38 deletions

View file

@ -1,24 +0,0 @@
name: Enable GitHub Actions
run-name: ${{ github.actor }} is activating GitHub Actions on a PR to the main branch 🚀
on:
pull_request:
branches: ["main"]
workflow_dispatch:
jobs:
Explore-GitHub-Actions:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v3
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ github.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."

View file

@ -1,15 +1,23 @@
name: test-appdev name: Full Stack AppDev E2E Test
run-name: ${{ github.actor }} is running the FSAT E2E Test 🚀
on: on:
workflow_dispatch:
pull_request: pull_request:
branches: branches:
- main - "main"
paths:
- "full-stack-asset-transfer-guide/**"
jobs: jobs:
test-appdev: test-fsat-appdev:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: checkout - name: checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -32,18 +40,14 @@ jobs:
run: | run: |
npm install -g @hyperledger-labs/weft npm install -g @hyperledger-labs/weft
- name: fabric - name: Install fabric CLI
working-directory: full-stack-asset-transfer-guide
run: | run: |
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/main/scripts/install-fabric.sh | bash -s -- binary curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/main/scripts/install-fabric.sh | bash -s -- binary
echo ${PWD}/bin >> $GITHUB_PATH
- name: check prereqs
run: |
export WORKSHOP_PATH="${PWD}"
export PATH="${WORKSHOP_PATH}/bin:${PATH}"
export FABRIC_CFG_PATH="${WORKSHOP_PATH}/config"
./check.sh
- name: just test-appdev - name: just test-appdev
run: | working-directory: full-stack-asset-transfer-guide
just test-appdev run: just test-appdev
- run: echo "🍏 This job's status is ${{ job.status }}."

View file

@ -106,3 +106,4 @@ We'll create a digital representation of these cards on the blockchain ledger. T
- [Go Bananas](docs/CloudReady/40-bananas.md) - [Go Bananas](docs/CloudReady/40-bananas.md)
- [Bring it Home](docs/CloudReady/90-teardown.md) - [Bring it Home](docs/CloudReady/90-teardown.md)