Skip to content

Bump github.com/go-resty/resty/v2 from 2.13.1 to 2.15.3 #428

Bump github.com/go-resty/resty/v2 from 2.13.1 to 2.15.3

Bump github.com/go-resty/resty/v2 from 2.13.1 to 2.15.3 #428

Workflow file for this run

name: code-coverage
on:
push:
tags:
- v*
branches:
- master
pull_request:
permissions:
contents: write
jobs:
test:
name: coverage
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v4
with:
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- name: go-test
run: |
go test -v ./... -covermode=count -coverprofile=coverage.out.temp
grep -Ev '(/example|_deprecated.go)' coverage.out.temp > coverage.out
rm coverage.out.temp
go tool cover -func=coverage.out -o=coverage.out
- name: go-coverage-badge # Pass the `coverage.out` output to this action
uses: tj-actions/coverage-badge-go@v2
with:
filename: coverage.out
- name: verify-changed
uses: tj-actions/verify-changed-files@v17
id: verify-changed-files
with:
files: README.md
- name: commit-changes
if: steps.verify-changed-files.outputs.files_changed == 'true'
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add README.md
git commit -m "chore: Updated coverage badge."
git fetch origin && git rebase origin/master
- name: push-changes
if: steps.verify-changed-files.outputs.files_changed == 'true'
uses: ad-m/github-push-action@master
with:
github_token: ${{ github.token }}
branch: ${{ github.head_ref }}