This repository has been archived by the owner on Nov 23, 2024. It is now read-only.
Bump codecov/codecov-action from 3.1.4 to 3.1.5 #270
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Test | |
# this is triggered on push to the repository | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: "Build" | |
strategy: | |
matrix: | |
go-version: [1.16.x, 1.17.x] | |
platform: [ubuntu-latest, macos-latest, windows-latest] | |
fail-fast: true | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build | |
run: go build ./... | |
test: | |
name: "Unit Tests" | |
needs: [build] | |
strategy: | |
matrix: | |
platform: [ubuntu-latest, macos-latest, windows-latest] | |
fail-fast: true | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.17.x | |
- name: Test | |
run: go test -failfast ./... -race -coverprofile=coverage.txt -covermode=atomic | |
- name: Push Coverage to codecov.io | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./coverage.txt |