Add foundation for crowdsec command and Admin API
#126
Workflow file for this run
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: Test | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| go-version: [1.23.x] | |
| full-tests: [false] | |
| include: | |
| - go-version: 1.23.x | |
| full-tests: true | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: '1.23.10' # TODO: fix matrix | |
| cache: true | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Linting | |
| if: matrix.full-tests | |
| run: | | |
| curl -sL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | | |
| sh -s -- -b $HOME/go/bin v2.1.6 | |
| $HOME/go/bin/golangci-lint run --timeout=30m \ | |
| --max-issues-per-linter 0 \ | |
| --max-same-issues 0 \ | |
| ./... | |
| - name: Testing | |
| continue-on-error: ${{ matrix.go-version == 'tip' }} | |
| run: | | |
| go version | |
| export GORACE="halt_on_error=1" | |
| go test -v -race ./... |