You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
804 B
37 lines
804 B
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: v1.42
|
|
working-directory: ${{ matrix.workdir }}
|
|
skip-go-installation: true
|
|
skip-pkg-cache: true
|
|
|