chore: init cache first

This commit is contained in:
friedger
2024-03-16 15:16:54 +01:00
parent a95cd891a8
commit ec8b4a5ee6
2 changed files with 2 additions and 0 deletions

View File

@@ -27,4 +27,5 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn install --immutable --immutable-cache --check-cache
- run: yarn test:init
- run: yarn test

View File

@@ -16,6 +16,7 @@
"replace:testnet": "node --no-warnings=ExperimentalWarning --loader ts-node/esm ./scripts/replace-testnet-address.ts",
"setup:clarity": "./scripts/clarinet_manager.sh clean && ./scripts/clarinet_manager.sh install",
"test": "npm run replace:mainnet && vitest run && npm run replace:testnet",
"test:init": "vitest run -t notests",
"test:report": "npm run replace:testnet && vitest run -- --coverage --costs && npm run replace:testnet",
"test:watch": "chokidar \"tests/**/*.ts\" \"contracts/**/*.clar\" -c \"npm run test:report\"",
"generate:report": "genhtml --branch-coverage -o coverage lcov.info"