Skip to content

Commit

Permalink
Run on every push
Browse files Browse the repository at this point in the history
  • Loading branch information
ianks committed Nov 14, 2022
1 parent 67ab87d commit 241439d
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/mem.yml → .github/workflows/memcheck.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
name: Run memory checks
name: Memcheck

on:
workflow_dispatch:
inputs:
ruby-version:
description: 'Ruby version to mem-check'
description: 'Ruby version to memcheck'
required: true
default: '3.1'
type: choice
Expand All @@ -15,11 +15,10 @@ on:
- '3.0'
- '2.7'
push:
branches: ["main", "mem/*"]

jobs:
memcheck:
name: Run memory checks
name: Memcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -40,10 +39,8 @@ jobs:
bundle config set deployment true
- name: Run "mem:check" task
run: bundle exec rake mem:check

- name: Halp!
if: failure()
run: |
msg="Valgrind memory check failed, for more info please see ./suppressions/readme.md"
echo "::error::$msg"
if ! bundle exec rake mem:check; then
echo "::error::Valgrind memory check failed, for more info please see ./suppressions/readme.md"
exit 1
fi

0 comments on commit 241439d

Please sign in to comment.