Skip to content

feat: implement bulk class session cancellation with clean main base #2967

feat: implement bulk class session cancellation with clean main base

feat: implement bulk class session cancellation with clean main base #2967

Workflow file for this run

name: golangci-lint
on: pull_request
permissions:
contents: read
env:
GO_VERSION: stable
GOLANGCI_LINT_VERSION: latest
jobs:
detect-modules:
runs-on: ubuntu-latest
outputs:
modules: ${{ steps.set-modules.outputs.modules }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- id: set-modules
run: |
modules=$(go list -m -json | jq -sc '[.[] | select(.Dir != null and (.Dir | test("backend/migrations") | not) and (.Dir | test("backend/seeder") | not)) | .Dir]')
echo "modules=$modules" >> "$GITHUB_OUTPUT"
golangci-lint:
needs: detect-modules
runs-on: ubuntu-latest
strategy:
matrix:
modules: ${{ fromJSON(needs.detect-modules.outputs.modules) }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: golangci-lint ${{ matrix.modules }}
uses: golangci/golangci-lint-action@v8
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
working-directory: ${{ matrix.modules }}
args: --timeout='3m'