feat: fix path issue

This commit is contained in:
Zitao Xiong
2022-11-02 21:37:00 +08:00
parent 896cfc84d0
commit 5a3d670922
6 changed files with 22 additions and 15 deletions

View File

@@ -23,17 +23,21 @@ jobs:
with:
entrypoint: "bash"
args: -c "cd clarity && clarinet check"
# test:
# name: test - ${{ github.ref_name }}
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - 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.0.4
# 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 && apt-get install -y jq git && GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" ./scripts/clarinet_manager.sh install && clarinet test --coverage"
test:
name: test - ${{ github.ref_name }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: sergeysova/jq-action@v2
- 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.0.4
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"

4
.gitignore vendored
View File

@@ -17,4 +17,6 @@ node_modules
/contract-records.json
yarn-error.log
tsconfig.tsbuildinfo
contracts_modules
contracts_modules
/clarity/.cache/deps/
/clarity/.cache/gen/

View File

@@ -5,6 +5,7 @@ name = "alex-v1"
contract_id = "ST287GF5M9WEJ6BXEN7NPN1WGA95YWXWBE0ZRK6X.Wrapped-USD"
[repl]
costs_version = 2