Skip to content

Spread tests for tutorial #11

Spread tests for tutorial

Spread tests for tutorial #11

Workflow file for this run

name: Tests with spread
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
run-spread-tests:
runs-on: ubuntu-latest
strategy:
matrix:
spread_job: ['github-ci:ubuntu-22.04:charm/src-docs/tutorial/code/']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
check-latest: true
go-version: 'stable'
- name: Install spread
run: |
go install github.com/snapcore/spread/cmd/spread@latest
- name: Run tests
run: |
sudo adduser --gecos "" --disabled-password ubuntu
echo "ubuntu:ubuntu" | sudo chpasswd
spread ${{ matrix.spread_job }}
- name: Tmate debugging session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
timeout-minutes: 15