fix(deps): update module golang.org/x/oauth2 to v0.27.0 [security] #628
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 spread | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| run-tests: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run unit tests | |
| run: | | |
| sudo snap install go --classic | |
| go test -v ./... | |
| - name: Build local spread | |
| run: | | |
| mkdir spread-testing | |
| cd spread-testing | |
| git init | |
| git remote add origin https://github.com/canonical/spread.git | |
| # Pin spread to a known stable commit; update only after verification. | |
| git fetch --depth=1 origin ae284792596e00d325a1787604fe4ec7e00574aa | |
| git checkout FETCH_HEAD | |
| go build -o spread-testing ./cmd/spread | |
| sudo install -m755 spread-testing /usr/bin/spread | |
| cd .. | |
| rm -Rf spread-testing | |
| - name: Run spread tests | |
| run: | | |
| uname -a | |
| SPREAD_GOOGLE_KEY=$(echo "${{ secrets.SPREAD_GOOGLE_KEY }}" | base64 -d) /usr/bin/spread google: | |
| - name: Discard spread workers | |
| if: always() | |
| run: | | |
| shopt -s nullglob | |
| for r in .spread-reuse.*.yaml; do | |
| spread -discard -reuse-pid="$(echo "$r" | grep -o -E '[0-9]+')" | |
| done |