-
Notifications
You must be signed in to change notification settings - Fork 41
42 lines (39 loc) · 1.13 KB
/
test-tool.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
name: Test OpenAPI tool
on:
schedule:
- cron: '0 2 * * *'
workflow_dispatch:
inputs:
bal_docker_version:
description: Ballerina Docker version
required: true
default: 'nightly'
jobs:
test_openapi_tool_nightly:
if: github.event_name == 'schedule'
runs-on: ubuntu-latest
container:
image: ballerina/ballerina:nightly
options: --user root
steps:
- uses: actions/checkout@v2
- name: Build with Gradle
env:
JAVA_OPTS: -DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true
GRADLE_USER_HOME: ~/.gradle
run: |
./gradlew build -PtestTool=true
test_openapi_tool_with_specified_version:
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
container:
image: ballerina/ballerina:${{ github.event.inputs.bal_docker_version }}
options: --user root
steps:
- uses: actions/checkout@v2
- name: Build with Gradle
env:
JAVA_OPTS: -DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true
GRADLE_USER_HOME: ~/.gradle
run: |
./gradlew build -PtestTool=true