This is a template project. It implements a counter. You can copy this folder to start writing your first contract.
npm i
npm run build
npm run test:template
save
echo "your testnet master account wallet" >> .near-credentials/workspaces/testnet/'$TESTNET_MASTER_ACCOUNT_ID'.json
TESTNET_MASTER_ACCOUNT_ID='your master account id' npm run test:testnetdeploy
current master account run by ci on testnet is templateprojectmaster.testnet
in gitlab ci, the testnet master account's secret is reserved on git secrets: https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions
This test script will create accounts with faucet to deploy and call contract
- run test shell
npm run test:clidevdeploy