Skip to content

Merge branch 'master' of github.com:kazhuravlev/healthcheck #4

Merge branch 'master' of github.com:kazhuravlev/healthcheck

Merge branch 'master' of github.com:kazhuravlev/healthcheck #4

Workflow file for this run

name: Go
on:
pull_request:
branches:
- 'master'
push:
tags:
- '*'
jobs:
build:
name: Build on golang ${{ matrix.go_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
go_version:
- "1.22"
os:
- "ubuntu-latest"
- "macOS-latest"
steps:
- name: Set up Go ${{ matrix.go_version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go_version }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Get dependencies
run: |
go mod download
- name: Test
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}