Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 23 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,33 @@ on:

jobs:
run-tests:
runs-on: self-hosted
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

- name: Run tests
- name: Run unit tests
run: |
spread google:
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()
Expand Down
Loading