-
Notifications
You must be signed in to change notification settings - Fork 31
45 lines (42 loc) · 1.38 KB
/
ci-clarinet.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
39
40
41
42
43
44
45
name: CI Clarinet
# Controls when the action will run.
on:
push:
concurrency:
group: 'ci-${{ github.ref }}'
cancel-in-progress: true
jobs:
check:
name: check - ${{ github.ref_name }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: sergeysova/jq-action@v2
- uses: wei/curl@v1
- name: Install Deps
run: |
cd clarity && ./scripts/clarinet_manager.sh install
- name: "Check contract"
uses: docker://hirosystems/clarinet:1.7.1
with:
entrypoint: "bash"
args: -c "cd clarity && clarinet check"
test:
name: test - ${{ github.ref_name }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: sergeysova/jq-action@v2
- uses: wei/curl@v1
- name: Install Deps
run: |
cd clarity && ./scripts/clarinet_manager.sh install
- name: "Set CI env"
run: |
echo "ci_env=$(bash <(curl -s https://codecov.io/env))" >> $GITHUB_ENV
- name: "Execute test suite"
uses: docker://hirosystems/clarinet:1.7.1
with:
entrypoint: "bash"
#args: -c "cd clarity && clarinet test --coverage && curl -Os https://uploader.codecov.io/latest/linux/codecov && chmod +x codecov && ./codecov -t ${{ secrets.CODECOV_TOKEN }} -f coverage.lcov"
args: -c "cd clarity && clarinet test --coverage"