Skip to content

Commit

Permalink
chore(workflows): update codecov.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
saitofun committed Feb 19, 2024
1 parent dc92f69 commit 567484e
Showing 1 changed file with 45 additions and 5 deletions.
50 changes: 45 additions & 5 deletions .github/workflows/codecov.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
env:
token: ${{ secrets.CODECOV_TOKEN }}
slug: machinefi/sprout
name: Build and Test
on:
push:
branches:
- *
pull_request:

jobs:

test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.12

- name: Check out code
uses: actions/checkout@v1

- name: Run Unit tests.
run: go test ./... -coverprofile cover.out -covermode=atomic

- name: Upload Coverage report to CodeCov
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./cover.out

#build:
# name: Build
# runs-on: ubuntu-latest
# needs: [lint, test]
# steps:
# - name: Set up Go
# uses: actions/setup-go@v1
# with:
# go-version: 1.12

# - name: Check out code
# uses: actions/checkout@v1

# - name: Build
# run: make build

0 comments on commit 567484e

Please sign in to comment.