forked from valkey-io/valkey-glide
-
Notifications
You must be signed in to change notification settings - Fork 0
110 lines (98 loc) · 4.13 KB
/
full-matrix-tests.yml
File metadata and controls
110 lines (98 loc) · 4.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: Full Matrix tests
permissions:
contents: read
actions: write
id-token: write
on:
workflow_dispatch: # note: if started manually, it won't run all matrix
inputs:
full-matrix:
description: "Run the full engine and host matrix"
type: boolean
default: true
run-with-macos:
description: "Run with macos inclauded (only when necessary)"
type: choice
options:
- false
- use-self-hosted
- use-github
default: false
run-modules-tests:
description: "Run modules tests"
type: boolean
default: true
# GHA supports up to 10 inputs, there is no option for multi-choice
core:
description: "Test GLIDE core"
type: boolean
default: true
redis-rs:
description: "Test Redis-RS client"
type: boolean
default: false
node:
description: "Test Node client"
type: boolean
default: true
python:
description: "Test Python client"
type: boolean
default: true
java:
description: "Test Java client"
type: boolean
default: true
go:
description: "Test Golang client"
type: boolean
default: true
concurrency:
group: nightly-${{ github.head_ref || github.ref }}-${{ toJson(inputs) }}
cancel-in-progress: true
# TODO matrix by workflow (`uses`) - not supported yet by GH
jobs:
check-input:
runs-on: ubuntu-latest
steps:
- name: no tests selected
run: false
if: github.event_name == 'workflow_dispatch' && inputs.core == false && inputs.java == false && inputs.python == false && inputs.node == false && inputs.java == false && inputs.csharp == false && inputs.go == false
run-full-tests-for-core:
if: (github.repository_owner == 'valkey-io' && github.event_name == 'schedule') || (github.event_name == 'workflow_dispatch' && inputs.core == true)
uses: ./.github/workflows/rust.yml
with:
run-with-macos: ${{ inputs.run-with-macos }}
name: Run CI for GLIDE core lib
secrets: inherit
run-full-tests-for-redis-rs:
if: (github.repository_owner == 'valkey-io' && github.event_name == 'schedule') || (github.event_name == 'workflow_dispatch' && inputs.redis-rs == true)
uses: ./.github/workflows/redis-rs.yml
name: Run CI for Redis-RS client
secrets: inherit
run-full-tests-for-java:
if: (github.repository_owner == 'valkey-io' && github.event_name == 'schedule') || (github.event_name == 'workflow_dispatch' && inputs.java == true)
uses: ./.github/workflows/java.yml
with:
run-with-macos: ${{ inputs.run-with-macos }}
name: Run CI for java client
secrets: inherit
run-full-tests-for-python:
if: (github.repository_owner == 'valkey-io' && github.event_name == 'schedule') || (github.event_name == 'workflow_dispatch' && inputs.python == true)
uses: ./.github/workflows/python.yml
with:
run-with-macos: ${{ inputs.run-with-macos }}
name: Run CI for python client
secrets: inherit
run-full-tests-for-node:
if: (github.repository_owner == 'valkey-io' && github.event_name == 'schedule') || (github.event_name == 'workflow_dispatch' && inputs.node == true)
uses: ./.github/workflows/node.yml
with:
run-with-macos: ${{ inputs.run-with-macos }}
name: Run CI for node client
secrets: inherit
run-full-tests-for-go:
if: (github.repository_owner == 'valkey-io' && github.event_name == 'schedule') || (github.event_name == 'workflow_dispatch' && inputs.go == true)
uses: ./.github/workflows/go.yml
name: Run CI for go client
secrets: inherit