Skip to content

Commit

Permalink
Merge pull request shakenfist#2386 from shakenfist/rework-functional-…
Browse files Browse the repository at this point in the history
…tests

Attempt to express functional tests as a matrix.
  • Loading branch information
mikalstill authored May 1, 2024
2 parents 67afe0d + 682fbf8 commit 56223b0
Show file tree
Hide file tree
Showing 14 changed files with 805 additions and 1,754 deletions.
215 changes: 0 additions & 215 deletions .github/workflows/ansible-module-tests.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/configure-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,36 +89,6 @@
'scheduled': False
},
],
'functional-tests': [
{
'name': 'debian-11-localhost',
'baseimage': 'sf://label/ci-images/debian-11',
'baseuser': 'debian',
'topology': 'localhost',
'concurrency': 3
},
{
'name': 'debian-12-slim-primary',
'baseimage': 'sf://label/ci-images/debian-12',
'baseuser': 'debian',
'topology': 'slim-primary',
'concurrency': 5
},
{
'name': 'ubuntu-2004-localhost',
'baseimage': 'sf://label/ci-images/ubuntu-2004',
'baseuser': 'ubuntu',
'topology': 'localhost',
'concurrency': 3
},
{
'name': 'ubuntu-2204-slim-primary',
'baseimage': 'sf://label/ci-images/ubuntu-2204',
'baseuser': 'ubuntu',
'topology': 'slim-primary',
'concurrency': 5
},
],
'scheduled-tests': [
{
'name': 'develop-debian-11-localhost',
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/docs-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Documentation tests

# NOTE(mikal): git repos are checked out to /srv/github/_work/{repo}/{repo}
# which is available as GITHUB_WORKSPACE. You can find other environment
# variables at https://docs.github.com/en/actions/learn-github-actions/environment-variables

on:
pull_request:
branches:
- develop
- v*-releases
paths:
- 'docs/**'

jobs:
lint:
runs-on: self-hosted
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-lint
cancel-in-progress: true

steps:
- name: Checkout code with two commits
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Ensure the docs build
run: |
cd ${GITHUB_WORKSPACE}/shakenfist
/usr/bin/tox -edocs
zip site.zip site
- uses: actions/upload-artifact@v4
if: always()
with:
name: site.zip
retention-days: 90
if-no-files-found: error
path: site.zip
Loading

0 comments on commit 56223b0

Please sign in to comment.