mirror of
https://github.com/git-chglog/git-chglog.git
synced 2026-01-23 02:15:12 +00:00
* chore: support goarch 386 * docs(readme): add golang version hint in development section
37 lines
802 B
YAML
37 lines
802 B
YAML
name: tests
|
|
|
|
on:
|
|
pull_request:
|
|
types: ['opened', 'synchronize']
|
|
paths-ignore:
|
|
- 'README.md'
|
|
push:
|
|
branches:
|
|
- master
|
|
paths-ignore:
|
|
- 'README.md'
|
|
jobs:
|
|
unit:
|
|
runs-on: ubuntu-20.04
|
|
strategy:
|
|
fail-fast: true
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.16
|
|
- name: Run tests
|
|
run: |
|
|
make test
|
|
- name: Install goveralls
|
|
env:
|
|
GO111MODULE: off
|
|
run: go get github.com/mattn/goveralls
|
|
- name: Send coverage
|
|
env:
|
|
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: goveralls -coverprofile=cover.out -service=github
|