Scheduled All Linux Distros Supported verification #121
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
| # 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 All Linux Distros Supported verification | |
| # yamllint disable-line rule:truthy | |
| on: | |
| schedule: | |
| - cron: "0 0 * * 1" | |
| workflow_dispatch: | |
| jobs: | |
| generate-json-matrix: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2 | |
| - name: Get matrix values | |
| id: set-matrix | |
| run: | | |
| if ! command -v shyaml; then | |
| pip install shyaml | |
| fi | |
| output="" | |
| for os in $(shyaml keys < distros_supported.yml); do | |
| for release in $(shyaml keys "$os" < distros_supported.yml); do | |
| output+="{\"os\": \"$os\", \"release\": \"$release\"}," | |
| done | |
| done | |
| length=${#output} | |
| echo "matrix=[${output::length-1}]" >> "$GITHUB_OUTPUT" | |
| outputs: | |
| matrix: ${{ steps.set-matrix.outputs.matrix }} | |
| check-all-distros: | |
| name: Check all Linux Distributions supported in an All-in-One setup | |
| runs-on: vm-self-hosted | |
| needs: generate-json-matrix | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: ${{ fromJson(needs.generate-json-matrix.outputs.matrix) }} | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2 | |
| - uses: ./.github/actions/vagrant-setup | |
| - name: Deploy Devstack instance | |
| env: | |
| VAGRANT_DISABLE_VBOXSYMLINKCREATE: 1 | |
| VAGRANT_EXPERIMENTAL: disks | |
| OS: ${{ matrix.os }} | |
| RELEASE: ${{ matrix.release }} | |
| MEMORY: 12288 | |
| run: | | |
| cd ci | |
| ./bootstrap.sh |