-
Notifications
You must be signed in to change notification settings - Fork 74
63 lines (58 loc) · 1.68 KB
/
spread-large.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Weekly Spread
on:
schedule:
# At 00:00 on Wednesday and Sunday.
- cron: "0 0 * * WED,SUN"
workflow_dispatch:
# If we're editing this file, run it on the pull request.
pull_request:
paths:
- .github/workflows/spread-large.yaml
- tests/spread/charms/**
- tests/spread/smoketests/parallel-build/*
- tests/spread/smoketests/remote-build/*
# Only ever run one of this test at a time.
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
spread:
runs-on: spread-installed
strategy:
fail-fast: false
# Each of these tasks can spin up several machines in spread.
max-parallel: 2
matrix:
task:
- charms/k8s-operator
- charms/operator
- charms/bundle
- charms/reactive
- smoketests/parallel-build
- smoketests/remote-build
steps:
- name: Cleanup job workspace
run: |
rm -rf "${{ github.workspace }}"
mkdir "${{ github.workspace }}"
- name: Checkout charmcraft
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Download charmcraft snap
run: |
snap download --channel=latest/edge charmcraft
- name: Spread k8s operator
env:
LAUNCHPAD_TOKEN: ${{ secrets.LAUNCHPAD_TOKEN }}
run: |
spread google:tests/spread/${{ matrix.task }}
- name: Clean up jobs
if: ${{ always() }}
run: |
spread -discard
shopt -s nullglob
for r in .spread-reuse.*.yaml; do
spread -discard -reuse-pid="$(echo "$r" | grep -o -E '[0-9]+')"
done