mirror of
https://github.com/go-kratos/kratos.git
synced 2025-01-28 03:57:02 +02:00
736fb38e79
* fix example lint error * use latest version lint * ignore zap Sync error
37 lines
768 B
YAML
37 lines
768 B
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
resolve-modules:
|
|
name: resolve module
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@v2
|
|
|
|
- id: set-matrix
|
|
run: ./hack/resolve-modules.sh
|
|
|
|
lint:
|
|
name: lint module
|
|
runs-on: ubuntu-latest
|
|
needs: resolve-modules
|
|
strategy:
|
|
matrix: ${{ fromJson(needs.resolve-modules.outputs.matrix) }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Lint
|
|
uses: golangci/golangci-lint-action@v2
|
|
with:
|
|
version: latest
|
|
working-directory: ${{ matrix.workdir }}
|
|
skip-pkg-cache: true
|