-
Notifications
You must be signed in to change notification settings - Fork 5
152 lines (150 loc) · 5.32 KB
/
bbes.yml
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
name: BBEs
on:
push:
paths:
- 'bbes/**'
- '.github/workflows/bbes.yml'
workflow_run:
workflows: [ "Validate Ballerina Version" ]
types:
- completed
workflow_dispatch:
inputs:
deb_url:
description: 'URL of the Ballerina DEB installer'
required: false
artifact_id:
description: 'GitHub Artifact ID of the Ballerina ZIP produced during Ballerina daily build'
required: false
active_branch:
description: 'The relevant branch of the ballerina-distribution repository'
required: true
default: 'master'
type: choice
options:
- master
- 2201.1.x
- 2201.0.x
jobs:
general:
name: General
runs-on: ubuntu-latest
env:
RELEASED_BALLERINA_DEB_URL: ${{ secrets.BALLERINA_DEB_URL }}
BALLERINA_DEB_URL: ${{ github.event.inputs.deb_url }}
BALLERINA_ARTIFACT_ID: ${{ github.event.inputs.artifact_id }}
ACTIVE_BRANCH: ${{ github.event.inputs.active_branch }}
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
strategy:
matrix:
module: [url, crypto, jwt]
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Download & Install Ballerina
run: ./_resources/scripts/install.sh
- name: Test
working-directory: bbes/general
run: ./${{ matrix.module }}.sh
http:
name: HTTP
runs-on: ubuntu-latest
env:
RELEASED_BALLERINA_DEB_URL: ${{ secrets.BALLERINA_DEB_URL }}
BALLERINA_DEB_URL: ${{ github.event.inputs.deb_url }}
BALLERINA_ARTIFACT_ID: ${{ github.event.inputs.artifact_id }}
ACTIVE_BRANCH: ${{ github.event.inputs.active_branch }}
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
strategy:
matrix:
bbe: [http_ssl_tls, http_mtls, http_basic_auth_file_store, http_basic_auth_ldap_store, http_jwt_auth,
http_oauth2_bearer_token, http_oauth2_client_credentials_grant, http_oauth2_password_grant,
http_oauth2_refresh_token_grant, http_oauth2_jwt_bearer_grant]
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Download & Install Ballerina
run: ./_resources/scripts/install.sh
- name: Test
working-directory: bbes/http
run: ./${{ matrix.bbe }}.sh
graphql:
name: GraphQL
runs-on: ubuntu-latest
env:
RELEASED_BALLERINA_DEB_URL: ${{ secrets.BALLERINA_DEB_URL }}
BALLERINA_DEB_URL: ${{ github.event.inputs.deb_url }}
BALLERINA_ARTIFACT_ID: ${{ github.event.inputs.artifact_id }}
ACTIVE_BRANCH: ${{ github.event.inputs.active_branch }}
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
strategy:
matrix:
bbe: [graphql_ssl_tls, graphql_mtls, graphql_basic_auth_file_store, graphql_basic_auth_ldap_store,
graphql_jwt_auth, graphql_oauth2_bearer_token]
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Download & Install Ballerina
run: ./_resources/scripts/install.sh
- name: Test
working-directory: bbes/graphql
run: ./${{ matrix.bbe }}.sh
websocket:
name: WebSocket
runs-on: ubuntu-latest
env:
RELEASED_BALLERINA_DEB_URL: ${{ secrets.BALLERINA_DEB_URL }}
BALLERINA_DEB_URL: ${{ github.event.inputs.deb_url }}
BALLERINA_ARTIFACT_ID: ${{ github.event.inputs.artifact_id }}
ACTIVE_BRANCH: ${{ github.event.inputs.active_branch }}
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
strategy:
matrix:
bbe: [websocket_ssl_tls, websocket_mtls, websocket_basic_auth_file_store, websocket_basic_auth_ldap_store,
websocket_jwt_auth, websocket_oauth2_bearer_token, websocket_oauth2_client_credentials_grant,
websocket_oauth2_password_grant, websocket_oauth2_refresh_token_grant]
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Download & Install Ballerina
run: ./_resources/scripts/install.sh
- name: Test
working-directory: bbes/websocket
run: ./${{ matrix.bbe }}.sh
grpc:
name: gRPC
runs-on: ubuntu-latest
env:
RELEASED_BALLERINA_DEB_URL: ${{ secrets.BALLERINA_DEB_URL }}
BALLERINA_DEB_URL: ${{ github.event.inputs.deb_url }}
BALLERINA_ARTIFACT_ID: ${{ github.event.inputs.artifact_id }}
ACTIVE_BRANCH: ${{ github.event.inputs.active_branch }}
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
strategy:
matrix:
bbe: [grpc_ssl_tls, grpc_mtls, grpc_basic_auth_file_store, grpc_basic_auth_ldap_store, grpc_jwt_auth,
grpc_oauth2_bearer_token, grpc_oauth2_client_credentials_grant, grpc_oauth2_password_grant,
grpc_oauth2_refresh_token_grant, grpc_oauth2_jwt_bearer_grant]
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Download & Install Ballerina
run: ./_resources/scripts/install.sh
- name: Test
working-directory: bbes/grpc
run: ./${{ matrix.bbe }}.sh