|
|
@ -8,29 +8,12 @@ on: |
|
|
|
workflow_dispatch: |
|
|
|
workflow_dispatch: |
|
|
|
|
|
|
|
|
|
|
|
jobs: |
|
|
|
jobs: |
|
|
|
resolve-modules: |
|
|
|
|
|
|
|
name: resolve module |
|
|
|
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
|
|
|
outputs: |
|
|
|
|
|
|
|
matrix: ${{ steps.set-matrix.outputs.matrix }} |
|
|
|
|
|
|
|
steps: |
|
|
|
|
|
|
|
- name: Checkout Repo |
|
|
|
|
|
|
|
uses: actions/checkout@v3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- id: set-matrix |
|
|
|
|
|
|
|
run: ./hack/resolve-modules.sh |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lint: |
|
|
|
lint: |
|
|
|
name: lint module |
|
|
|
name: lint module |
|
|
|
runs-on: ubuntu-latest |
|
|
|
runs-on: ubuntu-latest |
|
|
|
needs: resolve-modules |
|
|
|
|
|
|
|
strategy: |
|
|
|
|
|
|
|
matrix: ${{ fromJson(needs.resolve-modules.outputs.matrix) }} |
|
|
|
|
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- name: Lint |
|
|
|
- name: Lint |
|
|
|
uses: golangci/golangci-lint-action@v3 |
|
|
|
uses: golangci/golangci-lint-action@v3 |
|
|
|
with: |
|
|
|
with: |
|
|
|
version: latest |
|
|
|
version: latest |
|
|
|
working-directory: ${{ matrix.workdir }} |
|
|
|
|
|
|
|
skip-pkg-cache: true |
|
|
|
|
|
|
|