Skip to content

Merge remote-tracking branch 'origin/main' into remove_teardown_job_r… #66

Merge remote-tracking branch 'origin/main' into remove_teardown_job_r…

Merge remote-tracking branch 'origin/main' into remove_teardown_job_r… #66

Workflow file for this run

name: Unit Tests
on:
push:
pull_request:
jobs:
test:
name: Run on Ubuntu
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Clone the code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Running Tests with Coverage
run: |
go mod tidy
make test
- name: check test coverage
if: github.ref == 'refs/heads/main'
uses: vladopajic/go-test-coverage@v2
with:
config: ./.github/.testcoverage.yml
git-branch: badges
git-token: ${{ github.ref_name == 'main' && secrets.GITHUB_TOKEN || '' }}
- name: Check test coverage
if: github.ref != 'refs/heads/main'
uses: vladopajic/go-test-coverage@v2
with:
config: ./.github/.testcoverage.yml