refactor: rename os-image-composer to ICT across entire codebase #1280
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Go Lint | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - '**.go' | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - '**/*.go' | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| name: Linting | |
| runs-on: ["ubuntu-latest"] | |
| container: ubuntu:24.04 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Install dependencies | |
| run: | | |
| apt-get update | |
| apt-get install -y curl ca-certificates | |
| update-ca-certificates | |
| - name: Set up Go | |
| uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 #v6.0.0 | |
| with: | |
| go-version: '1.24' | |
| - name: Install golangci-lint | |
| run: | | |
| curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./bin v1.64.2 | |
| echo "$PWD/bin" >> $GITHUB_PATH | |
| - name: Run golangci-lint | |
| run: golangci-lint run ./... | |