Skip to content

Commit

Permalink
move main line testing to release
Browse files Browse the repository at this point in the history
  • Loading branch information
nhanphan committed Jan 2, 2025
1 parent d39072c commit 460927c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ jobs:
with:
git_ref: ${{ inputs.git_ref }}

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

test_js:
name: JS client
needs: build_programs
Expand All @@ -45,6 +53,14 @@ jobs:
with:
git_ref: ${{ inputs.git_ref }}

test_rust:
name: Rust client
needs: build_programs
uses: ./.github/workflows/test-rust-client.yml
secrets: inherit
with:
git_ref: ${{ inputs.git_ref }}

create_release:
name: Create program release
runs-on: ubuntu-latest
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/deploy-program.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on:
workflow_dispatch:
inputs:
git_ref:
description: Release tag (release/core@0.2.2) or commit to deploy
description: Release tag (release/core@0.9.2) or commit to deploy
required: true
type: string
default: release/core@0.2.2
default: release/core@0.9.2
program:
description: Program
required: true
Expand Down Expand Up @@ -66,22 +66,27 @@ jobs:
name: Programs
uses: ./.github/workflows/test-programs.yml
secrets: inherit
needs: [build_programs, check_tag]
if: needs.check_tag.outputs.type == 'ref'
with:
program_matrix: '["mpl-${{ inputs.program }}"]'
git_ref: ${{ inputs.git_ref }}

test_js:
name: JS client
needs: build_programs
needs: [build_programs, check_tag]
uses: ./.github/workflows/test-js-client.yml
secrets: inherit
if: needs.check_tag.outputs.type == 'ref'
with:
git_ref: ${{ inputs.git_ref }}

test_rust:
name: Rust client
needs: build_programs
needs: [build_programs, check_tag]
uses: ./.github/workflows/test-rust-client.yml
secrets: inherit
if: needs.check_tag.outputs.type == 'ref'
with:
git_ref: ${{ inputs.git_ref }}

Expand Down

0 comments on commit 460927c

Please sign in to comment.