mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-22 13:50:49 +01:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
50ea497569
1 changed files with 14 additions and 5 deletions
19
.github/workflows/codecov.yml
vendored
19
.github/workflows/codecov.yml
vendored
|
@ -1,8 +1,8 @@
|
||||||
name: Example workflow for Codecov
|
name: Codecov workflow
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- main
|
||||||
paths:
|
paths:
|
||||||
- '**.go'
|
- '**.go'
|
||||||
- 'go.*'
|
- 'go.*'
|
||||||
|
@ -10,7 +10,7 @@ on:
|
||||||
- 'codecov.yml'
|
- 'codecov.yml'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- main
|
||||||
paths:
|
paths:
|
||||||
- '**.go'
|
- '**.go'
|
||||||
- 'go.*'
|
- 'go.*'
|
||||||
|
@ -22,8 +22,17 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
|
go: [1.14, 1.15, 1.16, 1.17]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- name: Checkout Code
|
||||||
- uses: codecov/codecov-action@v2
|
uses: actions/checkout@master
|
||||||
|
|
||||||
|
- name: Run Tests
|
||||||
|
run: |
|
||||||
|
go test -race --coverprofile=coverage.coverprofile --covermode=atomic ./...
|
||||||
|
|
||||||
|
- name: Upload coverage to Codecov
|
||||||
|
if: success() && matrix.go == 1.17 && matrix.os == 'ubuntu-latest'
|
||||||
|
uses: codecov/codecov-action@v2
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
|
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
|
||||||
|
|
Loading…
Reference in a new issue