Added support for Amazon 2023, Debian 12, Ubuntu 24.04, removed EOL and BSD OSs and Python 2.7 support #1
Workflow file for this run
This file contains 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
name: Test Linux | ||
on: | ||
workflow_call: | ||
inputs: | ||
distro-slug: | ||
type: string | ||
required: true | ||
description: The Distribution Slug | ||
display-name: | ||
type: string | ||
required: true | ||
description: The Display Name For The Job | ||
instances: | ||
type: string | ||
required: true | ||
description: The Instances To Test | ||
timeout: | ||
type: number | ||
required: false | ||
default: 20 | ||
jobs: | ||
Test: | ||
name: ${{ matrix.instance }} | ||
runs-on: ubuntu-24.04 | ||
timeout-minutes: ${{ inputs.timeout }} | ||
strategy: | ||
max-parallel: 2 | ||
fail-fast: false | ||
matrix: | ||
instance: ${{ fromJSON(inputs.instances) }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
## DGM Need to replace this | ||
## DGM - name: Setup Ruby | ||
## DGM uses: ruby/setup-ruby@v1 | ||
## DGM with: | ||
## DGM ruby-version: 3.2.3 | ||
## DGM bundler-cache: true | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: Install Python Dependencies | ||
run: | | ||
python3 -m pip install -U pip | ||
python3 -m pip install -r tests/requirements.txt | ||
- name: Create Test Instance | ||
run: | | ||
## DGM Need to replace this | ||
## DGM b | ||
## DGM (sleep 10 && bundle exec kitchen create ${{ matrix.instance }}-${{ inputs.distro-slug }}) | ||
## DGM | ||
## DGM Need to select a GitHub runner here , ubuntu-latest | ||
sleep 2 | ||
- name: Test Bootstrap | ||
run: | | ||
## DGM Need to replace this | ||
## DGM bundle exec kitchen verify ${{ matrix.instance }}-${{ inputs.distro-slug }} | ||
## DGM | ||
## DGM Need to run the bootstrap tests for Linux here | ||
sleep 2 | ||
- name: Destroy Test Instance | ||
if: always() | ||
run: | | ||
## DGM Need to replace this | ||
## DGM bundle exec kitchen destroy ${{ matrix.instance }}-${{ inputs.distro-slug }} | ||
## DGM | ||
## DGM this can be removed since using GitHub shared runners, and it should just close when done with it | ||
sleep 2 | ||
- name: Set Exit Status | ||
if: always() | ||
run: | | ||
mkdir exitstatus | ||
echo "${{ job.status }}" > exitstatus/${{ github.job }}-${{ matrix.instance }}-${{ inputs.distro-slug }} | ||
- name: Upload Exit Status | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: exitstatus | ||
path: exitstatus |