diff --git a/.github/workflows/build-with-bal-test-native.yml b/.github/workflows/build-with-bal-test-native.yml deleted file mode 100644 index d245768..0000000 --- a/.github/workflows/build-with-bal-test-native.yml +++ /dev/null @@ -1,41 +0,0 @@ -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: - java-version: '17' - distribution: 'graalvm-community' - set-java-home: false - 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 - working-directory: ./ballerina - run: bal test --graalvm - env: - CLIENT_ID: ${{ secrets.CLIENT_ID }} - CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} - REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }} - REFRESH_URL: ${{ secrets.REFRESH_URL }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 790ea39..46e884e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,3 +17,5 @@ jobs: secrets: inherit with: repo-name: module-ballerinax-microsoft.onedrive + additional-test-flags: -x test + # Do not have wso2 tenant access atm diff --git a/.github/workflows/daily-build.yml b/.github/workflows/daily-build.yml deleted file mode 100644 index 1af08f5..0000000 --- a/.github/workflows/daily-build.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: Daily build - -on: - schedule: - - cron: '30 2 * * *' - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - # Setup Ballerina Environment - - name: Set Up Ballerina - uses: ballerina-platform/setup-ballerina@v1.1.0 - with: - version: latest - - # Build Ballerina Project - - name: Ballerina Build - run: bal pack ./ballerina - env: - JAVA_HOME: /usr/lib/jvm/default-jvm - - # Build Module Examples - - name: Ballerina Examples Build - run: chmod +x ./examples/build.sh && ./examples/build.sh build - env: - JAVA_HOME: /usr/lib/jvm/default-jvm - - # Test Ballerina Project - - name: Ballerina Test - run: bal test ./ballerina --test-report --code-coverage --coverage-format=xml - env: - CLIENT_ID: ${{ secrets.CLIENT_ID }} - CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} - REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }} - REFRESH_URL: ${{ secrets.REFRESH_URL }} - JAVA_HOME: /usr/lib/jvm/default-jvm - - - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 - - # Send notification when build fails - - name: Notify failure - if: ${{ failure() }} - run: | - curl -X POST \ - 'https://api.github.com/repos/ballerina-platform/ballerina-release/dispatches' \ - -H 'Accept: application/vnd.github.v3+json' \ - -H 'Authorization: Bearer ${{ secrets.BALLERINA_BOT_TOKEN }}' \ - --data "{ - \"event_type\": \"notify-build-failure\", - \"client_payload\": { - \"repoName\": \"module-ballerinax-microsoft.onedrive\" - } - }" diff --git a/.github/workflows/dev-stg-release.yml b/.github/workflows/dev-stg-release.yml index b85c07c..dc27741 100644 --- a/.github/workflows/dev-stg-release.yml +++ b/.github/workflows/dev-stg-release.yml @@ -19,3 +19,5 @@ jobs: secrets: inherit with: environment: ${{ github.event.inputs.environment }} + additional-publish-flags: -x test + # Do not have wso2 tenant access atm diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 4d40baf..278ab5b 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -13,4 +13,5 @@ jobs: uses: ballerina-platform/ballerina-library/.github/workflows/pr-build-connector-template.yml@main secrets: inherit with: - additional-test-flags: ${{ github.event.pull_request.head.repo.full_name != github.repository && '-x test' || ''}} + additional-test-flags: '-x test' + # Do not have wso2 tenant access atm diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4f25f04..3113d75 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,3 +14,5 @@ jobs: with: package-name: microsoft.onedrive package-org: ballerinax + additional-release-flags: -x test + # Do not have wso2 tenant access atm