-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1.01 KB
/
test-contract.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# GitHub action to run Clarinet tests against the contracts
# and fail if code is invalid or a test fails.
# Uses a prepare script outlined in testing section of README
name: Contract Tests
# Controls when the action will run.
on:
push:
branches:
- main
pull_request:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: "Prepare contract files"
run: ./scripts/clarinet-prepare.sh
- name: "Check contract syntax"
uses: docker://hirosystems/clarinet:latest
with:
args: check
- name: "Execute test suite"
uses: docker://hirosystems/clarinet:latest
with:
args: test --coverage
- name: "Upload code coverage"
uses: codecov/codecov-action@v2
with:
files: ./coverage.lcov