Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
csgui committed Jul 30, 2024
1 parent 75d5cb8 commit d537449
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/scheduled.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Property Testings

on:
pull_request:
schedule:
- cron: '0 */4 * * *'
workflow_dispatch:
Expand All @@ -24,18 +25,19 @@ jobs:
- name: Run
run: cargo test --test wasm-generation --test standard

notification:
name: Notification
runs-on: ubuntu-latest
needs: property-testing
if: ${{ failure() }}
steps:
- name: Notify on Failure
uses: maxkomarychev/[email protected]
with:
token: ${{ secrets.GH_TOKEN }}
title: "Property testing coverage has failed"
body: "FYI & A: @stacks-network/clarity-wasm"
labels:
- testing
- property-testing
- name: Notify on failure
uses: maxkomarychev/[email protected]
with:
token: ${{ secrets.GH_TOKEN }}
title: "Property testing coverage has failed"
body: "FYI & A: @stacks-network/clarity-wasm"
labels:
- testing
- property-testing

- name: Add link to the failure issue
uses: jayqi/failed-build-issue-action@v1
if: github.event.pull_request == null
with:
github-token: ${{ secrets.GH_TOKEN }}
label-name: "Property testing coverage has failed"
2 changes: 1 addition & 1 deletion clar2wasm/tests/standard/property_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use crate::utils::{
#[test]
fn prop_add_uint() {
utils::test_export_two_unsigned_args_checked("stdlib.add-uint", |a: u128, b: u128| {
a.checked_add(b)
a.checked_add(a)
})
}

Expand Down

0 comments on commit d537449

Please sign in to comment.