mirror of
https://github.com/kopia/kopia.git
synced 2026-03-08 00:08:26 -05:00
chore(ci): upgraded linter to 1.53.3 (#3079)
* chore(ci): upgraded linter to 1.53.3 This flagged a bunch of unused parameters, so the PR is larger than usual, but 99% mechanical. * separate lint CI task * run Lint in separate CI
This commit is contained in:
39
.github/workflows/lint.yml
vendored
Normal file
39
.github/workflows/lint.yml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: Lint
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
env:
|
||||
# environment variables shared between build steps
|
||||
# do not include sensitive credentials and tokens here, instead pass them
|
||||
# directly to tools that need them to limit the blast radius in case one of them
|
||||
# becomes compromised and leaks credentials to external sites.
|
||||
# required by Makefile
|
||||
UNIX_SHELL_ON_WINDOWS: true
|
||||
# set (to any value other than false) to trigger random unicode filenames testing (logs may be difficult to read)
|
||||
ENABLE_UNICODE_FILENAMES: ${{ secrets.ENABLE_UNICODE_FILENAMES }}
|
||||
# set (to any value other than false) to trigger very long filenames testing
|
||||
ENABLE_LONG_FILENAMES: ${{ secrets.ENABLE_LONG_FILENAMES }}
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest]
|
||||
name: Lint
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.20'
|
||||
id: go
|
||||
if: ${{ !contains(matrix.os, 'ARMHF') }}
|
||||
- name: Lint
|
||||
run: make lint
|
||||
Reference in New Issue
Block a user