Feat issue 390/update template with testnet deploy by ci #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
- develop | |
jobs: | |
workflows_ubuntu: | |
runs-on: ubuntu-latest | |
environment: | |
name: production | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "16" | |
- name: Install modules | |
run: yarn | |
- name: Build contract | |
run: yarn build | |
- name: Set master credentials | |
env: | |
TESTNET_MASTER_ACCOUNT_WALLET: ${{ secrets.TESTNET_MASTER_ACCOUNT_WALLET }} | |
# TESTNETMASTERACCOUNTWALLET: ${{ secrets.TESTNETMASTERACCOUNTWALLET }} | |
# run: echo "$TESTNET_MASTER_ACCOUNT_WALLET" > .near-credentials/workspaces/testnet/templateprojectmaster.testnet.json | |
run: echo "${#TESTNET_MASTER_ACCOUNT_WALLET}" | |
- name: Run ci tests | |
run: yarn testci | |
- name: Run near-cli tests | |
run: yarn run test:clidevdeploy | |
workflows_macos: | |
needs: workflows_ubuntu | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "16" | |
- name: Install modules | |
run: yarn | |
- name: Build contract | |
run: yarn build | |
- name: Set master credentials | |
env: | |
TESTNET_MASTER_ACCOUNT_WALLET: ${{ secrets.TESTNET_MASTER_ACCOUNT_WALLET }} | |
run: echo "$TESTNET_MASTER_ACCOUNT_WALLET" > .near-credentials/workspaces/testnet/templateprojectmaster.testnet.json | |
- name: Run ci tests | |
run: yarn testci | |
- name: Run near-cli tests | |
run: yarn run test:clidevdeploy |