Skip to content

🍪(chore): improve tests #247

🍪(chore): improve tests

🍪(chore): improve tests #247

Workflow file for this run

name: CI Pipeline
on:
pull_request:
branches: ["master"]
push:
branches: ["master"]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
# -------------------------------------------------------
# 1. Build and Test job for multiple Go versions
# -------------------------------------------------------
build-and-test:
name: Build and Test
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ["1.21.x", "1.22.x", "1.23.x"]
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache: true
- name: Install Dependencies
run: go mod download
- name: Build
run: go build ./...
- name: Run Tests
run: |
go test -v -coverprofile=coverage.txt ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}