Skip to content

Bump golang.org/x/crypto from 0.52.0 to 0.53.0 #20

Bump golang.org/x/crypto from 0.52.0 to 0.53.0

Bump golang.org/x/crypto from 0.52.0 to 0.53.0 #20

Workflow file for this run

name: Unit Tests
on:
pull_request:
push:
branches:
- main
tags:
- "v*"
permissions:
contents: read
pull-requests: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Setup Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
cache-dependency-path: go.sum
go-version-file: go.mod
cache: false
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y rootlesskit
- name: Run tests
env:
COV_THRESHOLD: "70"
run: |
# Execute the Unit tests
make VERBOSE=true ROOTLESSKIT=yes unit-tests
# Remove mock files from coverage analysis
sed -n -i '/\/mock\//!p' coverprofile.out
coverage=$(go tool cover -func=coverprofile.out | grep total | grep -Eo "[0-9]+\.[0-9]+")
if (( $(echo "${coverage} ${COV_THRESHOLD}" | awk '{print ($1 > $2)}') )); then
echo "Total Coverage is: ${coverage}%"
else
echo "Current test coverage (${coverage}%) is below the threshold (${COV_THRESHOLD}%)."
echo "Failed"
exit 1
fi