Skip to content

Commit 84e2bff

Browse files
committed
Merge branch 'main' into pi/SSW-309-donation-optimization
2 parents 878a5df + d43f212 commit 84e2bff

File tree

7 files changed

+857
-613
lines changed

7 files changed

+857
-613
lines changed

.github/workflows/tests.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,33 @@ jobs:
1313

1414
- uses: aiken-lang/[email protected]
1515
with:
16-
version: v1.0.20-alpha
16+
version: v1.0.24-alpha
1717

18-
- run: aiken check
18+
- run: |
19+
# Run the tests
20+
set -o pipefail
21+
RESULT=0
22+
aiken check 2>&1 | tee aiken.log || RESULT=$?
23+
if [ $RESULT -ne 0 ]; then
24+
{
25+
echo 'FAILING_TESTS<<EOF'
26+
grep "FAIL" aiken.log
27+
echo EOF
28+
} >> "$GITHUB_ENV"
29+
cat $GITHUB_ENV
30+
exit $RESULT
31+
fi
32+
- if: failure()
33+
run: |
34+
echo "$FAILING_TESTS"
1935
- run: aiken build
36+
- uses: actions/github-script@v6
37+
if: failure() && env.FAILING_TESTS != ''
38+
with:
39+
script: |
40+
github.rest.issues.createComment({
41+
issue_number: context.issue.number,
42+
owner: context.repo.owner,
43+
repo: context.repo.repo,
44+
body: `Tests failed:\n\n\`\`\`\n${{ env.FAILING_TESTS }}\n\`\`\``
45+
})

aiken.lock

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ name = "SundaeSwap-finance/aicone"
1111
version = "ae0852d40cc6332437492102451cf331a3c10b0d"
1212
source = "github"
1313

14+
[[requirements]]
15+
name = "aiken-extra/tx_util"
16+
version = "1.170.202312"
17+
source = "github"
18+
1419
[[packages]]
1520
name = "aiken-lang/stdlib"
1621
version = "97cd61345bcc8925c521b30d0f354859eb0148cd"
@@ -23,4 +28,10 @@ version = "ae0852d40cc6332437492102451cf331a3c10b0d"
2328
requirements = []
2429
source = "github"
2530

31+
[[packages]]
32+
name = "aiken-extra/tx_util"
33+
version = "1.170.202312"
34+
requirements = []
35+
source = "github"
36+
2637
[etags]

aiken.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,8 @@ source = "github"
1717
name = "SundaeSwap-finance/aicone"
1818
version = "ae0852d40cc6332437492102451cf331a3c10b0d"
1919
source = "github"
20+
21+
[[dependencies]]
22+
name = "aiken-extra/tx_util"
23+
version = "1.170.202312"
24+
source = "github"

0 commit comments

Comments
 (0)