diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml deleted file mode 100644 index b0303c10f9..0000000000 --- a/.github/workflows/golangci-lint.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: golangci-lint - -on: - push: - branches: [main] - pull_request: - branches: - - main - - rhcos-* - -permissions: - contents: read - -jobs: - golangci: - name: lint - runs-on: ubuntu-latest - steps: - # this is needed by containers/storage which we're using in gangplank - - name: Install deps - run: sudo apt-get install -y libgpgme-dev libbtrfs-dev libdevmapper-dev - - uses: actions/setup-go@v3 - with: - go-version: 1.18 - - uses: actions/checkout@v3 - - name: golangci-lint - uses: golangci/golangci-lint-action@v3 - with: - version: v1.46.2 - working-directory: gangplank - args: --timeout=5m - - name: golangci-lint - uses: golangci/golangci-lint-action@v3 - with: - version: v1.46.2 - working-directory: mantle - args: --timeout=5m - - name: golangci-lint - uses: golangci/golangci-lint-action@v3 - with: - version: v1.46.2 - working-directory: schema - args: --timeout=5m diff --git a/.github/workflows/lints.yml b/.github/workflows/lints.yml index 2dc9118627..0d2dc2e4ea 100644 --- a/.github/workflows/lints.yml +++ b/.github/workflows/lints.yml @@ -22,3 +22,32 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - run: make shellcheck + golangci-lint: + name: golangci-lint + runs-on: ubuntu-latest + steps: + # this is needed by containers/storage which we're using in gangplank + - name: Install deps + run: sudo apt-get install -y libgpgme-dev libbtrfs-dev libdevmapper-dev + - uses: actions/setup-go@v3 + with: + go-version: 1.18 + - uses: actions/checkout@v3 + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: v1.46.2 + working-directory: gangplank + args: --timeout=5m + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: v1.46.2 + working-directory: mantle + args: --timeout=5m + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: v1.46.2 + working-directory: schema + args: --timeout=5m