Merge pull request #54 from kapetan-io/thrawn/test-timeouts #276
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: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - main | |
| pull_request: | |
| branches: | |
| - master | |
| - main | |
| env: | |
| GOLANGCI_LINT_VERSION: v2.5.0 | |
| jobs: | |
| ci: | |
| name: CI | |
| strategy: | |
| matrix: | |
| go-version: | |
| - 1.23.x | |
| os: [ ubuntu-latest ] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| cache: true | |
| - name: Cache golangci-lint | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.local/bin/golangci-lint | |
| key: ${{ runner.os }}-golangci-lint-${{ env.GOLANGCI_LINT_VERSION }} | |
| - name: Install golangci-lint | |
| run: | | |
| if [ ! -f ~/.local/bin/golangci-lint ]; then | |
| mkdir -p ~/.local/bin | |
| curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ~/.local/bin ${{ env.GOLANGCI_LINT_VERSION }} | |
| fi | |
| echo ~/.local/bin >> $GITHUB_PATH | |
| - name: Run CI | |
| run: make ci |