From 5555194adb5a7eeeef65128528641df338b1ccab Mon Sep 17 00:00:00 2001 From: Azeem Muzammil Date: Fri, 23 Jun 2023 15:26:07 +0530 Subject: [PATCH] Add GrallVM checks on daily-builds --- .../workflows/build-with-bal-test-native.yml | 44 +++++++++++++++++++ README.md | 1 + 2 files changed, 45 insertions(+) create mode 100644 .github/workflows/build-with-bal-test-native.yml diff --git a/.github/workflows/build-with-bal-test-native.yml b/.github/workflows/build-with-bal-test-native.yml new file mode 100644 index 0000000..dee847b --- /dev/null +++ b/.github/workflows/build-with-bal-test-native.yml @@ -0,0 +1,44 @@ +name: GraalVM Check + +on: + schedule: + - cron: '30 18 * * *' + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up GraalVM + uses: graalvm/setup-graalvm@v1 + with: + version: 'latest' + java-version: '11' + components: 'native-image' + github-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Check GraalVM installation + run: | + echo "GRAALVM_HOME: ${{ env.GRAALVM_HOME }}" + echo "JAVA_HOME: ${{ env.JAVA_HOME }}" + native-image --version + + - name: Set Up Ballerina + uses: ballerina-platform/setup-ballerina@v1.1.0 + with: + version: latest + + - name: Run Ballerina tests using the native executable + run: bal test --native ./teams + env: + JAVA_HOME: /usr/lib/jvm/default-jvm + REFRESH_URL: ${{ secrets.REFRESH_URL }} + REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }} + CLIENT_ID: ${{ secrets.CLIENT_ID }} + CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} + USER_ID_1: ${{ secrets.USER_ID_1 }} + USER_ID_2: ${{ secrets.USER_ID_2 }} + USER_ID_3: ${{ secrets.USER_ID_3 }} diff --git a/README.md b/README.md index bead887..85a27f2 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ Ballerina Microsoft Teams Connector =================== [![Build Status](https://github.com/ballerina-platform/module-ballerinax-microsoft.teams/workflows/CI/badge.svg)](https://github.com/ballerina-platform/module-ballerinax-msgraph-teams/actions?query=workflow%3ACI) [![GitHub Last Commit](https://img.shields.io/github/last-commit/ballerina-platform/module-ballerinax-microsoft.teams.svg)](https://github.com/ballerina-platform/module-ballerinax-msgraph-teams/commits/master) +[![GraalVM Check](https://github.com/ballerina-platform/module-ballerinax-microsoft.teams/actions/workflows/build-with-bal-test-native.yml/badge.svg)](https://github.com/ballerina-platform/module-ballerinax-microsoft.teams/actions/workflows/build-with-bal-test-native.yml) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [Microsoft Teams](https://www.microsoft.com/en-ww/microsoft-teams/group-chat-software) is a chat-based collaboration