mirror of
https://github.com/Crocmagnon/fatcontext.git
synced 2024-11-15 04:33:58 +01:00
30 lines
555 B
YAML
30 lines
555 B
YAML
name: golangci-lint
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
tags: [ "*" ]
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
|
|
permissions:
|
|
contents: read
|
|
pull-requests: read
|
|
checks: write
|
|
|
|
jobs:
|
|
golangci:
|
|
strategy:
|
|
matrix:
|
|
go: ['1.21', '1.22']
|
|
name: lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: ${{ matrix.go }}
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@v6
|
|
with:
|
|
version: latest
|