Skip to content

Commit

Permalink
Merge pull request #263 from Eclalang/issue-#262-new-yml-codecov
Browse files Browse the repository at this point in the history
update in new file codecov
  • Loading branch information
tot0p authored Feb 26, 2024
2 parents 2aebd3b + 93bc922 commit 9a7e232
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 9a7e232

Please sign in to comment.