Skip to content

build(deps): bump amannn/action-semantic-pull-request from 5.4.0 to 5.5.3 #1162

build(deps): bump amannn/action-semantic-pull-request from 5.4.0 to 5.5.3

build(deps): bump amannn/action-semantic-pull-request from 5.4.0 to 5.5.3 #1162

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 master & 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:
- 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/[email protected]
id: git_diff
with:
SUFFIX_FILTER: |
.go
.mod
.sum
- name: Build 🔨
if: env.GIT_DIFF
run: make build
- name: Test & Coverage report creation 🧪
run: make test-unit stop-docker-test
if: env.GIT_DIFF
- name: Upload coverage 📤
if: env.GIT_DIFF
uses: codecov/codecov-action@v3
with:
file: ./coverage.txt