Skip to content

Commit

Permalink
Merge pull request #1 from mathdugre/update/ci
Browse files Browse the repository at this point in the history
Update/ci
  • Loading branch information
mathdugre authored Jun 17, 2021
2 parents 4b24bb0 + 0d3e5a8 commit bc34f95
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/sea-tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
on: [push]
name: Tests

on:
push:

workflow_dispatch:
inputs:
debug_enabled:
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: "false"

jobs:
install-docker:
runs-on: ubuntu-20.04
Expand All @@ -19,5 +28,8 @@ jobs:
- run: docker run --rm -v $PWD:$PWD -w $PWD imagetest:${{ matrix.os-name }} make test debug_opts="-g -ggdb --coverage -fprofile-arcs -ftest-coverage"
- run: docker run --rm -v $PWD:$PWD -w $PWD imagetest:${{ matrix.os-name }} bats tests/tests.bats
- run: docker run --rm -v $PWD:$PWD -w $PWD -e SEA_HOME=$PWD -e LD_PRELOAD=$PWD/build/sea.so imagetest:${{ matrix.os-name }} tests/test_custom
- name: setup tmate session
if: ${{ failure() && github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }}
uses: mxschmitt/action-tmate@v3


0 comments on commit bc34f95

Please sign in to comment.