Skip to content

Update partition-service-openapi-v1.yaml #657

Update partition-service-openapi-v1.yaml

Update partition-service-openapi-v1.yaml #657

Workflow file for this run

name: Code Coverage
on:
workflow_dispatch:
pull_request_target:
types:
- closed
branches:
- 'main'
concurrency:
group: codecov-${{ github.event.number || github.run_id }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: "1.19"
- name: Install Revive
shell: sh
run: |
go install github.com/mgechev/revive@latest
- name: Cache Ballerina.
uses: actions/cache@v3
id: cache
with:
path: "ballerina-dist/*.deb"
key: "ballerina-2201.7.0"
- name: Download Ballerina distribution.
shell: sh
run: |
mkdir -p ballerina-dist
wget 'https://dist.ballerina.io/downloads/2201.7.0/ballerina-2201.7.0-swan-lake-linux-x64.deb' -P ballerina-dist
if: steps.cache.outputs.cache-hit != 'true'
- name: Install Ballerina distribution.
shell: sh
run: "sudo dpkg -i ballerina-dist/ballerina-2201.7.0-swan-lake-linux-x64.deb"
- name: Verify Ballerina Version
shell: sh
run: "bal -v"
- name: Checkout apk-repo
uses: actions/checkout@v3
with:
fetch-depth: "0"
token: ${{ secrets.WSO2_BOT_TOKEN }}
- name: Set release username and email
shell: sh
run: |
git config --global user.name ${{ secrets.WSO2_BOT_USER }}
git config --global user.email ${{ secrets.WSO2_BOT_EMAIL }}
- name: Run Gradle Build
run: |
./build-apk.sh
- name: run codecov
uses: codecov/codecov-action@v3
with:
verbose: true # optional (default = false)