You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -235,6 +235,34 @@ evaluation on a blockchain. Use the following command:
235
235
$ clarinet deploy --testnet
236
236
```
237
237
238
+
### Use Clarinet in your CI workflow as a GitHub Action
239
+
240
+
Clarinet can be used in GitHub Actions as a step of your CI workflows.
241
+
You can set-up a simple workflow by adding the following steps in a file `.github/workflows/github-actions-clarinet.yml`:
242
+
243
+
```yaml
244
+
name: CI
245
+
on: [push]
246
+
jobs:
247
+
tests:
248
+
name: "Test contracts with Clarinet"
249
+
runs-on: ubuntu-latest
250
+
steps:
251
+
- uses: actions/checkout@v2
252
+
- name: "Execute unit tests"
253
+
uses: docker://hirosystems/clarinet:latest
254
+
with:
255
+
args: test --coverage --manifest-path=./Clarinet.toml
256
+
- name: "Export code coverage"
257
+
uses: codecov/codecov-action@v1
258
+
with:
259
+
files: ./coverage.lcov
260
+
verbose: true
261
+
```
262
+
263
+
Or add the steps above in your existing workflows.
264
+
The generated code coverage output can then be used as is with GitHub Apps like https://codecov.io.
265
+
238
266
### Extensions
239
267
240
268
Clarinet can easily be extended by community members: open source contributions to clarinet are welcome, but developers can also write their own clarinet extensions if they want to integrate clarity contracts with their own tooling and workflow.
0 commit comments