Skip to content

Commit

Permalink
Add test programs to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
febo committed Aug 2, 2023
1 parent 0cb181b commit 97c8e10
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/deploy-program.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,17 @@ jobs:
uses: ./.github/workflows/build-programs.yml
secrets: inherit

test_programs:
name: Programs
needs: build_programs
uses: ./.github/workflows/test-programs.yml
secrets: inherit
with:
program_matrix: '["${{ inputs.program }}"]'

test_js:
name: JS client
needs: build_programs
needs: test_programs
uses: ./.github/workflows/test-js.yml
secrets: inherit

Expand Down Expand Up @@ -94,15 +102,15 @@ jobs:
echo RPC=${{ secrets.MAINNET_RPC }} >> $GITHUB_ENV
fi
- name: Identify Program
- name: Identify program
run: |
if [ "${{ inputs.program }}" == "bubblegum" ]; then
echo ${{ secrets.BUBBLEGUM_DEPLOY_KEY }} > ./deploy-key.json
echo ${{ secrets.BUBBLEGUM_ID }} > ./program-id.json
echo PROGRAM_NAME="mpl_bubblegum" >> $GITHUB_ENV
fi
- name: Bump Program Version
- name: Bump program version
run: |
IDL_NAME=`echo "${{ inputs.program }}" | tr - _`
VERSION=`jq '.version' ./idls/${IDL_NAME}.json | sed 's/"//g'`
Expand All @@ -129,7 +137,7 @@ jobs:
echo PROGRAM_VERSION="${PROGRAM_VERSION}" >> $GITHUB_ENV
- name: Download Program Builds
- name: Download program builds
uses: actions/download-artifact@v3
with:
name: program-builds
Expand Down

0 comments on commit 97c8e10

Please sign in to comment.