-
Notifications
You must be signed in to change notification settings - Fork 11
55 lines (55 loc) · 1.89 KB
/
scheduled_aio.yml
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
---
# SPDX-license-identifier: Apache-2.0
##############################################################################
# Copyright (c) 2022
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
name: Scheduled OpenStack All-in-One verification
# yamllint disable-line rule:truthy
on:
schedule:
- cron: '0 0 * * 5'
workflow_dispatch:
jobs:
generate-json-matrix:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Get matrix values
id: set-matrix
run: |
if ! command -v shyaml; then
if ! command -v pip; then
apt-get update
apt-get install -y --no-install-recommends python3-pip
fi
pip install shyaml
fi
if ! command -v jq; then
apt-get update
apt-get install -y --no-install-recommends jq
fi
echo "matrix=$(shyaml keys < distros_supported.yml|jq -cnR '[inputs | select(length>0)]')" >>"$GITHUB_OUTPUT"
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
check-aio-vms:
name: Check All-in-One deployment on Virtual Machines
needs: generate-json-matrix
strategy:
fail-fast: false
matrix:
distro: ${{ fromJson(needs.generate-json-matrix.outputs.matrix) }}
runs-on: macos-12
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/vagrant-setup
- name: Deploy latest release in All-in-One instance
env:
CI_INITIAL_RELEASE_POINTER: 1
CPUS: 2
MEMORY: 12288
OS_DISTRO: ${{ matrix.distro }}
run: ./ci/check_aio.sh