mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-11-21 10:02:00 -08:00
39 lines
847 B
YAML
39 lines
847 B
YAML
name: Run tests
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '**.go'
|
|
- 'go.*'
|
|
- .github/workflows/test.yaml
|
|
|
|
push:
|
|
paths:
|
|
- '**.go'
|
|
- 'go.*'
|
|
- .github/workflows/test.yaml
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set up Go 1.13
|
|
uses: actions/setup-go@v1
|
|
with:
|
|
go-version: 1.13
|
|
id: go
|
|
- uses: actions/checkout@v1
|
|
- name: Run tests
|
|
run: |
|
|
go test ./... -v -race -coverprofile cover.out -covermode=atomic
|
|
- name: Convert coverage to lcov
|
|
uses: jandelgado/gcov2lcov-action
|
|
with:
|
|
infile: cover.out
|
|
outfile: coverage.lcov
|
|
- name: Coveralls
|
|
uses: coverallsapp/github-action
|
|
with:
|
|
github-token: ${{ secrets.github_token }}
|
|
path-to-lcov: coverage.lcov
|