Skip to content

Update maintenance api #43

Update maintenance api

Update maintenance api #43

Workflow file for this run

name: tests
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
unit:
strategy:
matrix:
go-version: [1.18.x, 1.20.x, 1.21.x]
os: [ubuntu-latest]
env:
OS: ${{ matrix.os }}
GO: ${{ matrix.go-version }}
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go get ./... && go test -race -tags fast -coverprofile unit.txt -covermode atomic ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
file: ./unit.txt
flags: unit,${{ matrix.os }},${{ matrix.go-version }}
name: unit