Skip to content

Update version of GitHub actions #306

Update version of GitHub actions

Update version of GitHub actions #306

Workflow file for this run

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/[email protected]
- name: Set up JDK 11
uses: actions/[email protected]
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