Skip to content

Commit

Permalink
docs: update github action format for Clarinet 2.x (#1332)
Browse files Browse the repository at this point in the history
In the latest version clarinet test is deprecated in favor of using the Clarinet SDK for unit testing.
  • Loading branch information
whoabuddy authored Jan 26, 2024
1 parent fdf400b commit b3feafb
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -546,13 +546,22 @@ jobs:
name: "Test contracts with Clarinet"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: "Execute unit tests"
- name: "Checkout code"
uses: actions/checkout@v3
- name: "Check contract syntax"
uses: docker://hirosystems/clarinet:latest
with:
args: test --coverage --manifest-path=./Clarinet.toml
- name: "Export code coverage"
uses: codecov/codecov-action@v1
args: check
- name: "Setup Node.js"
uses: actions/setup-node@v4
with:
node-version: "18.x"
- name: "Prep CI"
run: npm ci
- name: "Execute unit tests"
run: npm run test:report
- name: "Upload code coverage"
uses: codecov/codecov-action@v3
with:
files: ./coverage.lcov
verbose: true
Expand Down

0 comments on commit b3feafb

Please sign in to comment.