mirror of
https://github.com/wneessen/go-hibp.git
synced 2024-11-09 23:32:53 +01:00
32 lines
633 B
YAML
32 lines
633 B
YAML
name: Codecov workflow
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- '**.go'
|
|
- 'go.*'
|
|
- '.github/**'
|
|
- 'codecov.yml'
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- '**.go'
|
|
- 'go.*'
|
|
- '.github/**'
|
|
- 'codecov.yml'
|
|
jobs:
|
|
run:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
go: [1.15, 1.16, 1.17, 1.18]
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@master
|
|
|
|
- name: Run Tests
|
|
run: |
|
|
go test -v -race --coverprofile=coverage.coverprofile --covermode=atomic .
|