Skip to content

Commit

Permalink
remove too old debian version, add suse
Browse files Browse the repository at this point in the history
  • Loading branch information
jgstew committed Jun 19, 2024
1 parent e9396a9 commit cd8c2ad
Showing 1 changed file with 46 additions and 3 deletions.
49 changes: 46 additions & 3 deletions .github/workflows/test_run_qna.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ on:
env:
relevance: ( (it as string) of operating system ; (it as string) of version of client ; elements of it ) of sets of pathnames of (files of it; folders of it) of folders ("/tmp";"/Windows/Temp")

# TODO: add OSes: Debian, Raspbian, Amazon Linux, SUSE Linux Enterprise, OpenSUSE Leap
# TODO: add OSes: Raspbian, Amazon Linux, SUSE Linux Enterprise, OpenSUSE Leap
# https://github.com/pguyot/arm-runner-action

jobs:
test_run_qna:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -135,7 +137,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
container-image: ["debian:latest", "debian:11", "debian:10"]
container-image: ["debian:latest", "debian:11"]
container:
image: ${{ matrix.container-image }}
steps:
Expand All @@ -147,7 +149,7 @@ jobs:
apt-get install -y curl binutils
# https://stackoverflow.com/questions/57946173/github-actions-run-step-on-specific-os
- name: run qna linux
- name: run qna linux debian
if: runner.os == 'Linux'
# https://github.com/jgstew/tools/blob/master/bash/bigfix_run_qna_debian.sh
run: |
Expand All @@ -167,6 +169,47 @@ jobs:
cat qna_markdown.txt >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
test_run_qna_docker_suse_family:
runs-on: ubuntu-latest
strategy:
matrix:
container-image:
[
"opensuse/leap:15",
"opensuse/tumbleweed:latest",
"registry.suse.com/suse/sles12sp5:latest",
]
container:
image: ${{ matrix.container-image }}
steps:
- uses: actions/checkout@v4

# - name: install prereqs
# run: |
# apt-get -y update
# apt-get install -y curl binutils

# https://stackoverflow.com/questions/57946173/github-actions-run-step-on-specific-os
- name: run qna linux suse
if: runner.os == 'Linux'
# https://github.com/jgstew/tools/blob/master/bash/bigfix_run_qna_debian.sh
run: |
bash bash/bigfix_run_qna_suse_family.sh '${{ env.relevance }}' > qna_output.txt
cat qna_output.txt
cat qna_output.txt | grep "A: " | sed 's/^.*: //' > qna_markdown.txt
echo "## Linux SUSE QNA:" >> $GITHUB_STEP_SUMMARY
echo "### Errors:" >> $GITHUB_STEP_SUMMARY
cat qna_output.txt | grep "E: " | sed 's/^.*: //' >> $GITHUB_STEP_SUMMARY
echo "### Result Type:" >> $GITHUB_STEP_SUMMARY
cat qna_output.txt | grep "I: " | sed 's/^.*: //' >> $GITHUB_STEP_SUMMARY
echo "### Time Taken:" >> $GITHUB_STEP_SUMMARY
cat qna_output.txt | grep "T: " | sed 's/^.*: //' >> $GITHUB_STEP_SUMMARY
echo "### Answers:" >> $GITHUB_STEP_SUMMARY
echo 'Q: `${{ env.relevance }}`' >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
cat qna_markdown.txt >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
# References:
# - https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary
# - https://stackoverflow.com/questions/61326842/powershell-how-to-capture-a-string-of-text-after-a-certain-pattern-but-without-i
Expand Down

0 comments on commit cd8c2ad

Please sign in to comment.