deps(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.32.14 to 1.32.16 in /receiver/awss3eventreceiver #570
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: Tests | |
| on: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| # Graphite CI optimization: skip redundant CI runs for stacked PRs. | |
| # See https://graphite.com/docs/stacking-and-ci | |
| optimize_ci: | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| outputs: | |
| skip: ${{ steps.check_skip.outputs.skip }} | |
| steps: | |
| - name: Optimize CI | |
| id: check_skip | |
| uses: withgraphite/graphite-ci-action@26bc0dcdeaba101794931d67a464ecbb21a76a8b # v0.0.9 tag (no formal releases) | |
| with: | |
| graphite_token: ${{ secrets.GRAPHITE_CI_OPTIMIZER_TOKEN }} | |
| # Detect which files changed to skip irrelevant jobs on PRs. | |
| detect-changes: | |
| if: needs.optimize_ci.outputs.skip != 'true' | |
| needs: | |
| - optimize_ci | |
| runs-on: namespace-profile-bindplane-default-ubuntu-24-04 | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| outputs: | |
| # if this file changed, run all tests. if the makefile changed, run all tests. | |
| go: ${{ steps.filter.outputs.go == 'true' || steps.filter.outputs.tests == 'true' || steps.filter.outputs.makefile == 'true' }} | |
| steps: | |
| - name: Checkout Sources | |
| uses: namespacelabs/nscloud-checkout-action@c79c9a72c5df9e9590f9de7718b2f232c3e75879 # v7 | |
| - name: Detect changed files | |
| uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3 | |
| id: filter | |
| with: | |
| # These filters are based on picomatch syntax https://github.com/micromatch/picomatch# | |
| filters: | | |
| tests: | |
| - '.github/workflows/tests.yml' | |
| makefile: | |
| - 'Makefile' | |
| go: | |
| - '**/*.go' | |
| - '**/go.mod' | |
| - '**/go.sum' | |
| unit-tests: | |
| if: needs.optimize_ci.outputs.skip != 'true' && github.actor != 'dependabot[bot]' && needs.detect-changes.outputs.go == 'true' | |
| needs: | |
| - optimize_ci | |
| - detect-changes | |
| strategy: | |
| fail-fast: false | |
| max-parallel: 3 | |
| matrix: | |
| include: | |
| # Ubuntu - All tests | |
| - os: ubuntu | |
| runner: namespace-profile-bindplane-default-ubuntu-24-04-32x64 | |
| test_cmd: make test | |
| # macOS - All tests | |
| - os: macos | |
| runner: namespace-profile-bindplane-default-macos-15 | |
| test_cmd: make test | |
| # Windows - All tests | |
| - os: windows | |
| runner: namespace-profile-bindplane-default-windows-2022-16x32 | |
| test_cmd: make test | |
| runs-on: ${{ matrix.runner }} | |
| steps: | |
| - name: Checkout Sources (Namespace) | |
| if: matrix.os != 'windows' | |
| uses: namespacelabs/nscloud-checkout-action@c79c9a72c5df9e9590f9de7718b2f232c3e75879 # v7 | |
| - name: Checkout Sources (Windows) | |
| if: matrix.os == 'windows' | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5 | |
| with: | |
| go-version: "1.25.7" | |
| cache: false | |
| - name: Cache Go (Namespace) | |
| if: matrix.os != 'windows' | |
| uses: namespacelabs/nscloud-cache-action@a90bb5d4b27522ce881c6e98eebd7d7e6d1653f9 # v1 | |
| with: | |
| cache: go | |
| - name: Cache Go modules (Ubuntu) | |
| if: matrix.os == 'ubuntu' | |
| uses: namespacelabs/nscloud-cache-action@a90bb5d4b27522ce881c6e98eebd7d7e6d1653f9 # v1 | |
| with: | |
| path: /home/runner/go/pkg/mod | |
| - name: Cache Go modules (macOS) | |
| if: matrix.os == 'macos' | |
| uses: namespacelabs/nscloud-cache-action@a90bb5d4b27522ce881c6e98eebd7d7e6d1653f9 # v1 | |
| with: | |
| path: /Users/runner/go/pkg/mod | |
| - name: Cache Go modules (Windows) | |
| if: matrix.os == 'windows' | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 | |
| with: | |
| path: C:\Users\runneradmin\go\pkg\mod | |
| key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }} | |
| restore-keys: | | |
| ${{ runner.os }}-go-mod- | |
| - name: Cache Go build cache (Windows) | |
| if: matrix.os == 'windows' | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 | |
| with: | |
| path: C:\Users\runneradmin\AppData\Local\go-build | |
| key: ${{ runner.os }}-go-build-${{ hashFiles('**/*.go') }} | |
| restore-keys: | | |
| ${{ runner.os }}-go-build- | |
| - name: Cache Tools (Ubuntu) | |
| if: matrix.os == 'ubuntu' | |
| uses: namespacelabs/nscloud-cache-action@a90bb5d4b27522ce881c6e98eebd7d7e6d1653f9 # v1 | |
| with: | |
| path: /home/runner/go/bin | |
| - name: Cache Tools (macOS) | |
| if: matrix.os == 'macos' | |
| uses: namespacelabs/nscloud-cache-action@a90bb5d4b27522ce881c6e98eebd7d7e6d1653f9 # v1 | |
| with: | |
| path: /Users/runner/go/bin | |
| - name: Cache Tools (Windows) | |
| if: matrix.os == 'windows' | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 | |
| with: | |
| path: C:\Users\runneradmin\go\bin | |
| key: ${{ runner.os }}-go-tools-${{ hashFiles('internal/tools/go.sum') }} | |
| restore-keys: | | |
| ${{ runner.os }}-go-tools- | |
| - name: Install Tools | |
| run: make install-tools-ci | |
| - name: Run Tests (Windows) | |
| if: matrix.os == 'windows' | |
| run: ${{ matrix.test_cmd }} | |
| env: | |
| TMPDIR: D:\Temp | |
| TMP: D:\Temp | |
| TEMP: D:\Temp | |
| GOTMPDIR: D:\Temp | |
| - name: Run Tests | |
| if: matrix.os != 'windows' | |
| run: ${{ matrix.test_cmd }} | |
| test-summary: | |
| if: always() | |
| needs: [optimize_ci, unit-tests] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check test results | |
| run: | | |
| if [[ "${{ needs.unit-tests.result }}" == "success" ]]; then | |
| echo "All tests passed" | |
| elif [[ "${{ needs.unit-tests.result }}" == "skipped" ]]; then | |
| echo "Tests skipped" | |
| else | |
| echo "Tests failed" | |
| exit 1 | |
| fi |