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:
|
|
|
|
|
|
|
|
env:
|
2021-11-03 19:20:40 +03:00
|
|
|
GOLANGCILINT_VERSION: 1.43.0
|
2020-06-08 03:29:51 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
ci:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-09-18 19:11:51 +03:00
|
|
|
- name: Install expect
|
|
|
|
run: sudo apt-get install expect
|
2020-06-08 03:29:51 +03:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Setup go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
2021-12-09 19:24:30 +03:00
|
|
|
go-version: 1.17.5
|
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
|