-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (42 loc) · 1.29 KB
/
examples.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
name: Examples
on:
push:
paths:
- 'examples/**'
- '.github/workflows/examples.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
jobs:
examples:
name: Examples
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 }}
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
strategy:
matrix:
module: [http, grpc, websocket, websub, graphql, email, ftp, tcp, nats, stan, rabbitmq, kafka]
steps:
- uses: actions/checkout@v3.5.3
- name: Set up JDK 11
uses: actions/setup-java@v3.12.0
with:
distribution: 'temurin'
java-version: 11
- name: Download & Install Ballerina
run: ./_resources/scripts/install.sh
- name: Test
working-directory: examples/${{ matrix.module }}
run: ./scripts/${{ matrix.module }}.sh