1
2
mirror of https://github.com/yunginnanet/Rate5 synced 2024-06-28 18:11:01 +00:00

Update actions

This commit is contained in:
kayos@tcp.direct 2022-03-04 13:11:01 -08:00
parent 3517b17034
commit 4fe52dfb89
Signed by: kayos
GPG Key ID: 4B841471B4BEE979

@ -1,25 +1,18 @@
name: Go
name: Build Status
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
- uses: actions/checkout@v2
with:
fetch-depth: 2
- uses: actions/setup-go@v2
with:
go-version: '1.17'
- name: Run coverage
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash)