fix shim_copy_strip_slash.sh test that is failing #105
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: 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" ] | |
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 | |
- 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 | |