Debug logs v3 #9
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: golangci-lint | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| permissions: | |
| contents: read | |
| # Optional: allow read access to pull request. Use with `only-new-issues` option. | |
| pull-requests: read | |
| # Cancel the in-progress workflow when PR is refreshed. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} | |
| cancel-in-progress: true | |
| jobs: | |
| golangci: | |
| name: lint | |
| runs-on: ubuntu-latest | |
| env: | |
| CGO_ENABLED: "1" | |
| permissions: | |
| contents: read | |
| packages: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v4 | |
| with: | |
| go-version: "1.24" | |
| cache: false | |
| - name: Installing build Essentials and gcc | |
| run: | | |
| sudo apt -y update | |
| sudo apt -y install build-essential gcc libc-dev \ | |
| pkg-config \ | |
| libgl1-mesa-dev \ | |
| libxi-dev libxcursor-dev \ | |
| libxrandr-dev libxinerama-dev \ | |
| libxxf86vm-dev libx11-dev libx11-xcb-dev | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v7 | |
| with: | |
| only-new-issues: true | |
| args: --timeout=7m |