certificates/.github/workflows/test.yml

50 lines
1.1 KiB
YAML
Raw Normal View History

name: Lint, Test, Build
on:
push:
tags-ignore:
- 'v*'
branches:
- "**"
pull_request:
jobs:
lintTestBuild:
name: Lint, Test, Build
runs-on: ubuntu-20.04
strategy:
matrix:
go: [ '1.18', '1.19' ]
steps:
2021-04-13 22:38:36 +00:00
-
name: Checkout
uses: actions/checkout@v2
2021-04-13 22:38:36 +00:00
-
name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
2021-04-13 22:38:36 +00:00
-
name: Install Deps
2021-02-18 21:25:27 +00:00
id: install-deps
run: sudo apt-get -y install libpcsclite-dev
2021-04-13 22:38:36 +00:00
-
name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: ${{ secrets.GOLANGCI_LINT_VERSION }}
2021-04-13 22:42:54 +00:00
args: --timeout=30m
2021-04-13 22:38:36 +00:00
-
name: Test, Build
id: lint_test_build
run: V=1 make ci
-
name: Codecov
if: matrix.go == '1.19'
2022-04-11 21:14:02 +00:00
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
2022-04-11 21:14:02 +00:00
files: ./coverage.out # optional
name: codecov-umbrella # optional
fail_ci_if_error: true # optional (default = false)