build(deps): bump base64 from 0.22.1 to 0.23.1 #10318
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 | |
| on: | |
| push: | |
| branches: [ main, 'hotfix/**' ] | |
| pull_request: | |
| jobs: | |
| go-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - run: sudo apt install -y libpcap-dev build-essential | |
| - run: make go-build | |
| go-lint: | |
| runs-on: ubuntu-latest | |
| needs: go-build | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - run: sudo apt install -y libpcap-dev | |
| - uses: golangci/golangci-lint-action@v8 | |
| - run: make go-lint | |
| go-test: | |
| runs-on: ubuntu-24.04-16c-64gb | |
| needs: go-build | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - run: sudo sysctl -w net.ipv4.ping_group_range="0 0" | |
| - run: sudo apt install -y libpcap-dev | |
| - run: make go-test nocontainertest | |
| go-container-test: | |
| runs-on: ubuntu-latest | |
| needs: go-build | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - uses: docker/setup-buildx-action@v3 | |
| - name: Check Docker Hub credentials | |
| id: dockerhub | |
| env: | |
| DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
| DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | |
| run: | | |
| if [ -n "$DOCKERHUB_USERNAME" ] && [ -n "$DOCKERHUB_TOKEN" ]; then | |
| echo "available=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "available=false" >> "$GITHUB_OUTPUT" | |
| echo "::notice::Docker Hub credentials are unavailable; continuing without Docker Hub login." | |
| fi | |
| - name: Login to Docker Hub | |
| if: steps.dockerhub.outputs.available == 'true' | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - run: make go-container-test | |
| go-fuzz: | |
| runs-on: ubuntu-latest | |
| needs: go-build | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - run: make go-fuzz |