Skip to content

Add master branch

Add master branch #3

name: golangci-lint
on:
push:
branches:
- master
- main
pull_request:
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read
defaults:
run:
shell: bash
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.20"
cache: false
- name: golangci-lint
# https://github.com/golangci/golangci-lint-action/releases/tag/v3.7.0
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc
with:
version: v1.55
only-new-issues: true
install-mode: "binary"
args: --timeout=10m