2020-06-08 03:29:51 +03:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2021-08-20 16:20:13 +03:00
|
|
|
- "master"
|
2020-06-08 03:29:51 +03:00
|
|
|
pull_request:
|
|
|
|
|
2021-08-20 16:20:13 +03:00
|
|
|
# bump: workflow-golangcilint /GOLANGCILINT_VERSION: ([\d.]+)/ git:https://github.com/golangci/golangci-lint.git|^1
|
2020-06-08 03:29:51 +03:00
|
|
|
env:
|
2021-08-18 22:00:23 +03:00
|
|
|
GOLANGCILINT_VERSION: 1.42.0
|
2020-06-08 03:29:51 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
ci:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Setup go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
2021-08-20 16:20:13 +03:00
|
|
|
# bump: workflows-golang /go-version: ([\d.]+)/ git:https://github.com/actions/go-versions.git|/(.*)-.*/$1/|^1
|
2021-08-18 22:00:23 +03:00
|
|
|
go-version: 1.17.0
|
2020-06-08 03:29:51 +03:00
|
|
|
- name: Lint
|
|
|
|
uses: golangci/golangci-lint-action@v2
|
|
|
|
with:
|
|
|
|
version: v${{ env.GOLANGCILINT_VERSION }}
|
|
|
|
- name: Test
|
|
|
|
run: make test
|