2021-02-18 20:38:32 +00:00
|
|
|
name: Lint, Test, Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags-ignore:
|
|
|
|
- 'v*'
|
|
|
|
branches:
|
|
|
|
- "**"
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
lintTestBuild:
|
|
|
|
name: Lint, Test, Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
2021-02-19 03:13:09 +00:00
|
|
|
go-version: '^1.16.0'
|
2021-02-18 21:25:27 +00:00
|
|
|
- name: Install Deps
|
|
|
|
id: install-deps
|
|
|
|
run: sudo apt-get -y install libpcsclite-dev
|
2021-02-18 20:38:32 +00:00
|
|
|
- name: Lint, Test, Build
|
|
|
|
id: lintTestBuild
|
2021-02-19 03:15:47 +00:00
|
|
|
run: V=1 make -j1 bootstrap ci
|
2021-02-18 20:38:32 +00:00
|
|
|
- name: Codecov
|
|
|
|
uses: codecov/codecov-action@v1.2.1
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
|
|
|
|
file: ./coverage.out # optional
|
|
|
|
name: codecov-umbrella # optional
|
|
|
|
fail_ci_if_error: true # optional (default = false)
|