mirror of
https://github.com/wader/fq.git
synced 2024-12-25 14:23:18 +03:00
34 lines
822 B
YAML
34 lines
822 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "master"
|
|
pull_request:
|
|
|
|
# bump: ci-golangci-lint /GOLANGCILINT_VERSION: ([\d.]+)/ git:https://github.com/golangci/golangci-lint.git|^1
|
|
env:
|
|
GOLANGCILINT_VERSION: 1.42.1
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Install expect
|
|
run: sudo apt-get install expect
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
# bump: ci-golang /go-version: ([\d.]+)/ git:https://github.com/actions/go-versions.git|/(.*)-.*/$1/|^1
|
|
go-version: 1.17.1
|
|
- name: Lint
|
|
uses: golangci/golangci-lint-action@v2
|
|
with:
|
|
version: v${{ env.GOLANGCILINT_VERSION }}
|
|
- name: Test
|
|
run: make test
|