diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a3a5aa5..b4d34b0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,11 +16,11 @@ jobs: steps: - uses: actions/checkout@v2 - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@nightly + uses: ballerina-platform/ballerina-action/@2201.3.1 with: args: pack ./s3 - name: Ballerina Test - uses: ballerina-platform/ballerina-action/@nightly + uses: ballerina-platform/ballerina-action/@2201.3.1 with: args: test --code-coverage ./s3 env: diff --git a/.github/workflows/daily-build.yml b/.github/workflows/daily-build.yml deleted file mode 100644 index ae28d67..0000000 --- a/.github/workflows/daily-build.yml +++ /dev/null @@ -1,69 +0,0 @@ -name: Daily build - -# Controls when the action will run. -on: - schedule: - - cron: '30 2 * * *' - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on - runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - - # Build the ballerina project - - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@nightly - with: - args: - pack ./s3 - - # Test the ballerina project - - name: Ballerina Test - uses: ballerina-platform/ballerina-action/@nightly - with: - args: - test --code-coverage ./s3 - env: - ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY_ID }} - SECRET_ACCESS_KEY: ${{ secrets.SECRET_ACCESS_KEY }} - REGION: ${{ secrets.REGION }} - BUCKET_NAME: ${{ secrets.BUCKET_NAME }} - - # Read the ballerina test results - - name: Read Ballerina Test Results - id: test_results - run: | - content=`cat ./s3/target/report/test_results.json` - content="${content//'%'/'%25'}" - content="${content//$'\n'/'%0A'}" - content="${content//$'\r'/'%0D'}" - echo "::set-output name=testResultsJson::$content" - - # Print the code coverage information - - name: Code Coverage - run: | - echo "Covered Code Lines : ${{fromJson(steps.test_results.outputs.testResultsJson).coveredLines}}" - echo "Total Code Lines : $(expr ${{fromJson(steps.test_results.outputs.testResultsJson).missedLines}} + ${{fromJson(steps.test_results.outputs.testResultsJson).coveredLines}})" - echo "Code Coverage Percentage : ${{fromJson(steps.test_results.outputs.testResultsJson).coveragePercentage}}" - - # 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-aws.s3\" - } - }" diff --git a/.github/workflows/dev-stg-release.yml b/.github/workflows/dev-stg-release.yml index 8b3079c..1eae8d5 100644 --- a/.github/workflows/dev-stg-release.yml +++ b/.github/workflows/dev-stg-release.yml @@ -19,13 +19,13 @@ jobs: steps: - uses: actions/checkout@v2 - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@2201.2.1 + uses: ballerina-platform/ballerina-action/@2201.3.1 with: args: pack ./s3 - name: Push to Staging if: github.event.inputs.bal_central_environment == 'STAGE' - uses: ballerina-platform/ballerina-action/@2201.2.1 + uses: ballerina-platform/ballerina-action/@2201.3.1 with: args: push env: @@ -34,7 +34,7 @@ jobs: - name: Push to Dev if: github.event.inputs.bal_central_environment == 'DEV' - uses: ballerina-platform/ballerina-action/@2201.2.1 + uses: ballerina-platform/ballerina-action/@2201.3.1 with: args: push env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b83f867..6197bd2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Ballerina Build - uses: ballerina-platform/ballerina-action/@2201.2.1 + uses: ballerina-platform/ballerina-action/@2201.3.1 with: args: pack ./s3 env: @@ -21,7 +21,7 @@ jobs: REGION: ${{ secrets.REGION }} BUCKET_NAME: ${{ secrets.BUCKET_NAME }} - name: Ballerina Push - uses: ballerina-platform/ballerina-action/@2201.2.1 + uses: ballerina-platform/ballerina-action/@2201.3.1 with: args: push env: diff --git a/s3/Ballerina.toml b/s3/Ballerina.toml index 6c0ac27..bf870e7 100644 --- a/s3/Ballerina.toml +++ b/s3/Ballerina.toml @@ -1,8 +1,8 @@ [package] -distribution = "2201.3.0" +distribution = "2201.3.1" org = "ballerinax" name = "aws.s3" -version = "3.0.0" +version = "3.1.0" license= ["Apache-2.0"] authors = ["Ballerina"] keywords = ["Content & Files/File Management & Storage", "Cost/Paid", "Vendor/Amazon"] diff --git a/s3/Dependencies.toml b/s3/Dependencies.toml index 74ede83..ac9ce5d 100644 --- a/s3/Dependencies.toml +++ b/s3/Dependencies.toml @@ -33,7 +33,7 @@ dependencies = [ [[package]] org = "ballerina" name = "constraint" -version = "1.0.1" +version = "1.0.2" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -66,7 +66,7 @@ dependencies = [ [[package]] org = "ballerina" name = "http" -version = "2.5.0" +version = "2.5.3" dependencies = [ {org = "ballerina", name = "auth"}, {org = "ballerina", name = "cache"}, @@ -207,7 +207,7 @@ dependencies = [ [[package]] org = "ballerina" name = "log" -version = "2.5.0" +version = "2.5.1" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -221,7 +221,7 @@ modules = [ [[package]] org = "ballerina" name = "mime" -version = "2.5.0" +version = "2.5.1" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -243,7 +243,7 @@ dependencies = [ [[package]] org = "ballerina" name = "observe" -version = "1.0.5" +version = "1.0.6" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] @@ -263,7 +263,7 @@ modules = [ [[package]] org = "ballerina" name = "regex" -version = "1.3.1" +version = "1.3.2" dependencies = [ {org = "ballerina", name = "jballerina.java"}, {org = "ballerina", name = "lang.string"} @@ -318,7 +318,7 @@ modules = [ [[package]] org = "ballerinax" name = "aws.s3" -version = "3.0.0" +version = "3.1.0" dependencies = [ {org = "ballerina", name = "crypto"}, {org = "ballerina", name = "http"}, diff --git a/s3/Package.md b/s3/Package.md index c375bf5..9acc771 100644 --- a/s3/Package.md +++ b/s3/Package.md @@ -8,7 +8,7 @@ The `ballerinax/aws.s3` is a [Ballerina](https://ballerina.io/) connector for AW ### Compatibility | | Version | |--------------------|--------------------| -| Ballerina Language | Swan Lake 2201.3.0 | +| Ballerina Language | Swan Lake 2201.3.1 | | Amazon S3 API | 2006-03-01 | ## Report issues