ip-masq-agent-v2/.github/workflows/main.yaml

55 строки
1.1 KiB
YAML
Исходник Постоянная ссылка Обычный вид История

2022-01-11 19:52:47 +03:00
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Lint
2022-01-11 19:52:47 +03:00
uses: golangci/golangci-lint-action@v2
with:
version: latest
args:
-v
--max-same-issues 10
--disable-all
--exclude-use-default=false
-E asciicheck
-E deadcode
-E errcheck
-E forcetypeassert
-E gocritic
-E gofmt
-E goimports
-E gosimple
-E govet
-E ineffassign
-E misspell
-E staticcheck
-E structcheck
-E typecheck
-E unused
-E varcheck
2022-01-11 19:52:47 +03:00
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- run: |
make build
name: Build
test:
runs-on: ubuntu-latest
2022-01-11 19:52:47 +03:00
steps:
- name: Checkout code
uses: actions/checkout@v2
- run: |
make test
name: Test