Skip to content

Commit

Permalink
Add CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
q-uint committed Nov 9, 2021
1 parent 6098f56 commit 0ad29ff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: aviate-labs/setup-dfx@v0.2.3
with:
dfx-version: 0.8.3
vessel-version: 0.6.2
- run: for i in test/*.mo ; do $(vessel bin)/moc $(vessel sources) -r $i ; done
2 changes: 1 addition & 1 deletion test/SHA256.mo
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ for (v in [
("abcdefghi", "19CC02F26DF43CC571BC9ED7B0C4D29224A3EC229529221725EF76D021C8326F"),
("abcdefghij", "72399361DA6A7754FEC986DCA5B7CBAF1C810A28DED4ABAF56B2106D06CB78B0"),
].vals()) {
assert(Hex.encode(SHA256.sum256(Blob.toArray(Text.encodeUtf8(v.0)))) == v.1);
assert(Hex.encode(SHA256.sum(Blob.toArray(Text.encodeUtf8(v.0)))) == v.1);
};

do {
Expand Down

0 comments on commit 0ad29ff

Please sign in to comment.