Skip to content

self-update remove unnecessary output #946

self-update remove unnecessary output

self-update remove unnecessary output #946

Workflow file for this run

on:
push:
branches:
- main
pull_request:
name: go test
jobs:
test:
strategy:
matrix:
go-version: [1.21.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: Caching
uses: actions/cache@v2
with:
path: ~/go/pkg
key: ${{ runner.os }}-kool-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-kool-
- name: Download dependencies
run: |
go mod download
go install
- name: Test
if: matrix.os == 'macos-latest'
run: go test ./...
- name: Test with code coverage
if: matrix.os == 'ubuntu-latest'
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: Code Coverage
if: matrix.os == 'ubuntu-latest'
run: bash <(curl -s https://codecov.io/bash)