Skip to content

Commit

Permalink
update in new file codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
tot0p committed Feb 26, 2024
1 parent 2aebd3b commit 93bc922
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Test and coverage

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: 'stable'
- name: Run coverage
run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: Eclalang/Ecla
16 changes: 0 additions & 16 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,7 @@ on:
push:
branches:
- 'main'

jobs:
codecov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: 'stable'
- name: Run coverage
run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: Eclalang/Ecla

api:
environment:
name: github-pages
Expand Down

0 comments on commit 93bc922

Please sign in to comment.