mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
Add FSAT appdev E2E test
Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com>
This commit is contained in:
parent
60a61b8241
commit
34734cfff2
3 changed files with 19 additions and 38 deletions
24
.github/workflows/enable-gha.yaml
vendored
24
.github/workflows/enable-gha.yaml
vendored
|
|
@ -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 }}."
|
||||
|
||||
|
|
@ -1,15 +1,23 @@
|
|||
name: test-appdev
|
||||
name: Full Stack AppDev E2E Test
|
||||
run-name: ${{ github.actor }} is running the FSAT E2E Test 🚀
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- "main"
|
||||
paths:
|
||||
- "full-stack-asset-transfer-guide/**"
|
||||
|
||||
jobs:
|
||||
test-appdev:
|
||||
test-fsat-appdev:
|
||||
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: checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
|
|
@ -32,18 +40,14 @@ jobs:
|
|||
run: |
|
||||
npm install -g @hyperledger-labs/weft
|
||||
|
||||
- name: fabric
|
||||
- name: Install fabric CLI
|
||||
working-directory: full-stack-asset-transfer-guide
|
||||
run: |
|
||||
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/main/scripts/install-fabric.sh | bash -s -- binary
|
||||
|
||||
- name: check prereqs
|
||||
run: |
|
||||
export WORKSHOP_PATH="${PWD}"
|
||||
export PATH="${WORKSHOP_PATH}/bin:${PATH}"
|
||||
export FABRIC_CFG_PATH="${WORKSHOP_PATH}/config"
|
||||
|
||||
./check.sh
|
||||
echo ${PWD}/bin >> $GITHUB_PATH
|
||||
|
||||
- name: just test-appdev
|
||||
run: |
|
||||
just test-appdev
|
||||
working-directory: full-stack-asset-transfer-guide
|
||||
run: just test-appdev
|
||||
|
||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||
|
|
@ -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)
|
||||
- [Bring it Home](docs/CloudReady/90-teardown.md)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue