Skip to content

Shim library test

Shim library test #100

Workflow file for this run

name: Shim library test
on:
pull_request:
types: [opened, edited, reopened]
push:
branches:
- development
- stable
paths-ignore:
- '.github/**'
- 'debian/changelog'
- 'TODO.txt'
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate
)'
required: false
default: false
jobs:
run_sr_insects_tests:
strategy:
# Don't cancel the entire matrix when one job fails
fail-fast: false
matrix:
which_test: [ "test_shim_post", "test_shim_copy_mirror", "test_shim_copy_strip", "test_shim_copy_strip_slash", "test_shim_copy_baseDir" ]
osver: [ "ubuntu-20.04", "ubuntu-22.04" ]
#which_test: [ "test_shim_copy_strip_slash" ]
#osver: [ "ubuntu-22.04" ]
runs-on: ${{ matrix.osver }}
name: ${{ matrix.which_test }} test on ${{ matrix.osver }}
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
./vm_autoconfig.sh
./vm_ssh_localhost.sh
- name: Build binaries
run: |
make
# Enable tmate debugging of manually-triggered workflows if the input option was provided
# https://github.com/marketplace/actions/debugging-with-tmate
# 2023/07/22 PAS, removed because when manually invoking test it always enables in spite
# of the github box not being checked, so cannot invoke the tests manually.
#- name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
# if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
- name: Run ${{ matrix.which_test }}
run: |
make ${{ matrix.which_test }}
- name: Compress log files for artifacts
if: always()
continue-on-error: true
run: |
tar -czf ${HOME}/sr3c_logs.tar.gz ${HOME}/.cache/sr3 ${HOME}/.config/sr3 *.log
- name: Save run artifacts
if: always()
uses: actions/upload-artifact@v3
continue-on-error: true
with:
name: sr3_${{ matrix.which_test }}_${{ matrix.osver }}_state_${{ github.sha }}
path: ~/sr3c_logs.tar.gz