Skip to content

Commit 460927c

Browse files
committed
move main line testing to release
1 parent d39072c commit 460927c

File tree

2 files changed

+25
-4
lines changed

2 files changed

+25
-4
lines changed

.github/workflows/create-release.yml

+16
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ jobs:
3737
with:
3838
git_ref: ${{ inputs.git_ref }}
3939

40+
test_programs:
41+
name: Programs
42+
uses: ./.github/workflows/test-programs.yml
43+
secrets: inherit
44+
with:
45+
program_matrix: '["mpl-${{ inputs.program }}"]'
46+
git_ref: ${{ inputs.git_ref }}
47+
4048
test_js:
4149
name: JS client
4250
needs: build_programs
@@ -45,6 +53,14 @@ jobs:
4553
with:
4654
git_ref: ${{ inputs.git_ref }}
4755

56+
test_rust:
57+
name: Rust client
58+
needs: build_programs
59+
uses: ./.github/workflows/test-rust-client.yml
60+
secrets: inherit
61+
with:
62+
git_ref: ${{ inputs.git_ref }}
63+
4864
create_release:
4965
name: Create program release
5066
runs-on: ubuntu-latest

.github/workflows/deploy-program.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ on:
44
workflow_dispatch:
55
inputs:
66
git_ref:
7-
description: Release tag (release/core@0.2.2) or commit to deploy
7+
description: Release tag (release/core@0.9.2) or commit to deploy
88
required: true
99
type: string
10-
default: release/core@0.2.2
10+
default: release/core@0.9.2
1111
program:
1212
description: Program
1313
required: true
@@ -66,22 +66,27 @@ jobs:
6666
name: Programs
6767
uses: ./.github/workflows/test-programs.yml
6868
secrets: inherit
69+
needs: [build_programs, check_tag]
70+
if: needs.check_tag.outputs.type == 'ref'
6971
with:
7072
program_matrix: '["mpl-${{ inputs.program }}"]'
73+
git_ref: ${{ inputs.git_ref }}
7174

7275
test_js:
7376
name: JS client
74-
needs: build_programs
77+
needs: [build_programs, check_tag]
7578
uses: ./.github/workflows/test-js-client.yml
7679
secrets: inherit
80+
if: needs.check_tag.outputs.type == 'ref'
7781
with:
7882
git_ref: ${{ inputs.git_ref }}
7983

8084
test_rust:
8185
name: Rust client
82-
needs: build_programs
86+
needs: [build_programs, check_tag]
8387
uses: ./.github/workflows/test-rust-client.yml
8488
secrets: inherit
89+
if: needs.check_tag.outputs.type == 'ref'
8590
with:
8691
git_ref: ${{ inputs.git_ref }}
8792

0 commit comments

Comments
 (0)