build(deps): bump google.golang.org/grpc from 1.80.0 to 1.82.1 (#924) #1664
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 Tests | |
| on: | |
| push: | |
| tags: | |
| - v* | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Setup Go | |
| uses: hashicorp/setup-golang@36878950ae8f21c1bc25accaf67a4df88c29b01d # v3.0.0 | |
| # install deps using go install | |
| - name: Install test dependencies | |
| run: | | |
| go install gotest.tools/gotestsum@latest | |
| make test-certs | |
| # install nomad, consul, and vault. nomad is required by the Nomad | |
| # Variables variable source integration tests, consul by the Consul KV | |
| # variable source integration tests, and vault by the Vault KV variable | |
| # source integration tests; the tests fail hard if they are not on $PATH. | |
| - name: Install Nomad, Consul, and Vault | |
| run : | | |
| sudo apt -y install wget gpg coreutils | |
| wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg | |
| echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list | |
| sudo apt update && sudo apt -y install nomad consul vault | |
| # Run tests with nice formatting. Save the original log in /tmp/gotest.log | |
| - name: Run tests | |
| run: | | |
| gotestsum -f testname --jsonfile /tmp/test-output.log -- ./... | |
| # Upload the original go test log as an artifact for later review. | |
| - name: Upload test log | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: test-log | |
| path: /tmp/test-output.log | |
| if-no-files-found: error |