Skip to content

build(deps): bump google.golang.org/grpc from 1.61.1 to 1.62.0 #66

build(deps): bump google.golang.org/grpc from 1.61.1 to 1.62.0

build(deps): bump google.golang.org/grpc from 1.61.1 to 1.62.0 #66

Workflow file for this run

name: Tests
# Tests / Code Coverage workflow runs unit tests and uploads a code coverage report.
# This workflow is run on pushes to main & every Pull Requests where a .go, .mod, .sum have been changed.
on:
pull_request:
push:
branches:
- main
jobs:
Cleanup-runs:
runs-on: ubuntu-latest
steps:
- name: Cleanup 🧹
uses: rokroskar/workflow-run-cleanup-action@master
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'"
Unit-tests:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Setup Go 🧰
uses: actions/setup-go@v5
with:
go-version: '1.20'
- name: Compute diff 📜
uses: technote-space/get-diff-action@v6.1.2
id: git_diff
with:
PATTERNS: |
**/**.go
go.mod
go.sum
- name: Start database 🗄️
if: "env.GIT_DIFF != ''"
run: make start-test-db
- name: Test & Create coverage report 🧪
if: "env.GIT_DIFF != ''"
run: make test-unit
- name: Upload cove coverage 📤
if: "env.GIT_DIFF != ''"
uses: codecov/codecov-action@v3
with:
file: ./coverage.txt