Skip to content

Initial support for OCI key manager #5

Initial support for OCI key manager

Initial support for OCI key manager #5

Workflow file for this run

name: OnPullRequest
on:
pull_request:
permissions: read-all
jobs:
security-file-check:
runs-on: [ ubuntu-20.04 ]
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
fetch-depth: 0
- name: Check Security.md file
run: |
if [ ! -f ./Security.md ]; then
echo "Security.md file is missing"
exit 1
fi
build-test-scan:
runs-on: [ ubuntu-20.04 ]
env:
http_proxy: ${{ secrets.HTTP_PROXY }}
https_proxy: ${{ secrets.HTTPS_PROXY }}
no_proxy: ${{ secrets.NO_PROXY }}
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: '1.22'
- name: Style Checker
run: |
if [ "$(make go-fmt | tail -n 1 | grep gofmt | wc -l)" -eq 0 ]; then
echo "Code is not formatted properly"
exit 1
fi
- name: Unit Test Coverage
run: |
COVERAGE=$(make test-coverage | grep 'total' | awk '{print $3}' | awk -F. '{print $1}')
echo "Unit test coverage is - $COVERAGE%"
if [[ $COVERAGE -lt 80 ]]; then
echo "Unit test coverage must be above 80% "
exit 1
fi