Skip to content

Bumped dependencies to fix security problems (#98) #127

Bumped dependencies to fix security problems (#98)

Bumped dependencies to fix security problems (#98) #127

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Installing Go
uses: actions/setup-go@v2
with:
go-version: "1.22"
- name: Run tests with code coverage
run: |
go test -coverprofile=coverage.out ./... -short
- name: Upload coverage artifact
if: github.event_name == 'push'
uses: actions/upload-artifact@v4
with:
name: coverage
path: ./coverage.out
- name: Download coverage artifact
if: github.event_name == 'push'
uses: actions/[email protected]
with:
name: coverage
path: .
- name: Upload coverage reports to Codecov
if: github.event_name == 'push'
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: View code coverage report
if: github.event_name == 'push'
run: go tool cover -func=coverage.out