Skip to content

CI: Switch from Codecov to Codacy #96

CI: Switch from Codecov to Codacy

CI: Switch from Codecov to Codacy #96

Workflow file for this run

on:
push:
branches:
- main
pull_request:
branches:
- main
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.18.x, 1.19.x, 1.20.x, 1.21.x, 1.22.x]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test -race -coverprofile=coverage.out -covermode=atomic -v ./...
- name: Upload test coverage to Codacy
run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report --force-coverage-parser go -r coverage.out