Skip to content

Commit 0d16fb0

Browse files
Merge pull request #219 from AzeemMuzammil/fb-enable-grallvm-check
Add GraalVM checks for Daily-Build
2 parents 42b44a9 + 5b2a771 commit 0d16fb0

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: GraalVM Check
2+
3+
on:
4+
schedule:
5+
- cron: '30 18 * * *'
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Set up GraalVM
16+
uses: graalvm/setup-graalvm@v1
17+
with:
18+
version: 'latest'
19+
java-version: '11'
20+
components: 'native-image'
21+
github-token: ${{ secrets.GITHUB_TOKEN }}
22+
23+
- name: Check GraalVM installation
24+
run: |
25+
echo "GRAALVM_HOME: ${{ env.GRAALVM_HOME }}"
26+
echo "JAVA_HOME: ${{ env.JAVA_HOME }}"
27+
native-image --version
28+
29+
- name: Set Up Ballerina
30+
uses: ballerina-platform/[email protected]
31+
with:
32+
version: latest
33+
34+
- name: Run Ballerina tests using the native executable
35+
working-directory: ./gmail
36+
run: bal test --native
37+
env:
38+
JAVA_OPTS: -DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true
39+
CLIENT_ID: ${{ secrets.CLIENT_ID }}
40+
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
41+
REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }}
42+
REFRESH_URL: ${{ secrets.REFRESH_URL }}
43+
RECIPIENT: ${{ secrets.RECIPIENT }}
44+
SENDER: ${{ secrets.SENDER }}
45+
CC: ${{ secrets.CC }}
46+
ATTACHMENT_PATH: ${{ secrets.ATTACHMENT_PATH }}
47+
ATTACHMENT_CONTENT_TYPE: ${{ secrets.ATTACHMENT_CONTENT_TYPE }}
48+
INLINE_IMAGE_PATH: ${{ secrets.INLINE_IMAGE_PATH }}
49+
INLINE_IMAGE_NAME: ${{ secrets.INLINE_IMAGE_NAME }}
50+
IMAGE_CONTENT_TYPE: ${{ secrets.IMAGE_CONTENT_TYPE }}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![Build Status](https://github.com/ballerina-platform/module-ballerinax-googleapis.gmail/workflows/CI/badge.svg)](https://github.com/ballerina-platform/module-ballerinax-googleapis.gmail/actions?query=workflow%3ACI)
44
[![GitHub Last Commit](https://img.shields.io/github/last-commit/ballerina-platform/module-ballerinax-googleapis.gmail.svg)](https://github.com/ballerina-platform/module-ballerinax-googleapis.gmail/commits/master)
5+
[![GraalVM Check](https://github.com/ballerina-platform/module-ballerinax-googleapis.gmail/actions/workflows/build-with-bal-test-native.yml/badge.svg)](https://github.com/ballerina-platform/module-ballerinax-googleapis.gmail/actions/workflows/build-with-bal-test-native.yml)
56
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
67

78
[Gmail](https://blog.google/products/gmail/), short for Google Mail is a free email service developed by Google LLC. It

0 commit comments

Comments
 (0)