Skip to content

Commit 29bbcc0

Browse files
authored
Merge pull request #172 from hirosystems/main
chore: update develop branch
2 parents 8f2886c + 6ff00f8 commit 29bbcc0

File tree

10 files changed

+55
-12
lines changed

10 files changed

+55
-12
lines changed

.github/workflows/ci.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,22 +344,30 @@ jobs:
344344
./target/${{ matrix.target }}/release/clarinet test --manifest-path ${testdir}/Clarinet.toml
345345
}
346346
347-
- name: Upload Artifacts to GH release (Not Windows)
347+
- name: Upload Cargo Artifact to GH release (Not Windows)
348348
uses: svenstaro/upload-release-action@v2
349349
if: startsWith(github.ref, 'refs/tags/v') && matrix.os != 'windows-latest'
350350
with:
351351
repo_token: ${{ secrets.GITHUB_TOKEN }}
352352
file: clarinet-${{ matrix.platform }}-${{ matrix.architecture }}.tar.gz
353353
tag: ${{ github.ref }}
354354

355-
- name: Upload Artifacts to GH release (Windows)
355+
- name: Upload Cargo Artifact to GH release (Windows)
356356
uses: svenstaro/upload-release-action@v2
357357
if: startsWith(github.ref, 'refs/tags/v') && matrix.os == 'windows-latest'
358358
with:
359359
repo_token: ${{ secrets.GITHUB_TOKEN }}
360360
file: clarinet-${{ matrix.platform }}-${{ matrix.architecture }}.msi
361361
tag: ${{ github.ref }}
362362

363+
- name: Upload Node Artifact to GH release
364+
uses: svenstaro/upload-release-action@v2
365+
if: startsWith(github.ref, 'refs/tags/v')
366+
with:
367+
repo_token: ${{ secrets.GITHUB_TOKEN }}
368+
file: stacks-devnet-js-${{ matrix.platform }}-${{ matrix.architecture }}.tar.gz
369+
tag: ${{ github.ref }}
370+
363371
# Cleans the `./target` dir after the build such that only dependencies are cached on CI
364372
- name: Prepare cache
365373
run: cargo xtask pre-cache

.github/workflows/pkg-version-bump.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
brew bump-formula-pr \
3434
--no-browse \
3535
--no-audit \
36-
--tag "${TAG}"
36+
--tag "${TAG}" \
3737
${{ github.event.repository.name }}
3838
3939
winget:

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# [0.20.0](https://github.com/hirosystems/clarinet/compare/v0.19.1...v0.20.0) (2021-12-09)
2+
3+
4+
### Features
5+
6+
* document CI how-to ([a4079d9](https://github.com/hirosystems/clarinet/commit/a4079d96dd762ae85804bd1d8b116eac75447dac))
7+
18
## [0.19.1](https://github.com/hirosystems/clarinet/compare/v0.19.0...v0.19.1) (2021-12-06)
29

310

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "clarinet"
3-
version = "0.19.1"
3+
version = "0.20.0"
44
authors = ["Ludo Galabru <ludo@hiro.so>"]
55
edition = "2018"
66
description = "Clarinet is a clarity runtime packaged as a command line tool, designed to facilitate smart contract understanding, development, testing and deployment."

README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ sudo apt install build-essential pkg-config libssl-dev
6464
You can build Clarinet from source using Cargo with the following commands:
6565

6666
```bash
67-
git clone git@github.com:hirosystems/clarinet.git --recursive
67+
git clone https://github.com/hirosystems/clarinet.git --recursive
6868
cd clarinet
6969
cargo install --path . --locked
7070
```
@@ -235,6 +235,34 @@ evaluation on a blockchain. Use the following command:
235235
$ clarinet deploy --testnet
236236
```
237237

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+
238266
### Extensions
239267
240268
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.

node-bindings/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node-bindings/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "stacks-devnet-js"
3-
version = "0.19.1"
3+
version = "0.20.0"
44
license = "ISC"
55
edition = "2018"
66
exclude = ["index.node"]

node-bindings/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node-bindings/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hirosystems/stacks-devnet-js",
3-
"version": "0.19.1",
3+
"version": "0.20.0",
44
"description": "stacks-devnet-js is a library for writing end to end tests for protocols interacting with the Stacks blockchain and the Bitcoin blockchain.",
55
"author": "Ludo Galabru",
66
"license": "GPL-3.0",

0 commit comments

Comments
 (0)