diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 6f18170..7be73d1 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -6,38 +6,20 @@ on: pull_request: branches: ['main'] jobs: - build: - + monolith: runs-on: ubuntu-latest - - # strategy: - # matrix: - # node-version: [12.x, 14.x, 16.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - + env: + DEV_MNEMONIC: ${{ secrets.DEV_MNEMONIC }} + MUMBAI_URL: ${{secrets.MUMBAI_URL}} + FORK_URL: ${{ secrets.FORK_URL }} steps: - - uses: actions/checkout@v2 - - uses: borales/actions-yarn@v3.0.0 - name: install - with: - cmd: install - - uses: borales/actions-yarn@v3.0.0 - name: compile - with: - cmd: hardhat compile - - uses: borales/actions-yarn@v3.0.0 - name: tests - with: - cmd: hardhat test --network hardhat - env: - FORK_URL: ${{ secrets.FORK_URL }} - DEV_MNEMONIC: ${{ secrets.DEV_MNEMONIC }} - - - uses: borales/actions-yarn@v3.0.0 - name: deploy - with: - cmd: rimraf deployments/mumbai/AludelFactory.json && yarn hardhat deploy --network mumbai --write true --tags templates - env: - DEV_MNEMONIC: ${{ secrets.DEV_MNEMONIC }} - MUMBAI_URL: ${{secrets.MUMBAI_URL}} - DEPLOY_CHAIN: mumbai + - uses: actions/checkout@v2 + - uses: actions/setup-node@v3 + with: + node-version: '16' + - run: yarn install --dev + - run: yarn compile + - run: yarn lint-sol + - run: yarn lint-ts + - run: yarn test-ts + - run: rm deployments/mumbai/AludelFactory.json && yarn hardhat deploy --network mumbai --tags templates diff --git a/package.json b/package.json index 81c8b88..b428896 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,9 @@ "license": "MIT", "scripts": { "lint-sol": "git ls-files |grep '\\.sol$' |xargs ./node_modules/.bin/solhint", - "lint-ts": "git ls-files |grep '\\.[tj]s$'| xargs ./node_modules/.bin/eslint" + "lint-ts": "git ls-files |grep '\\.[tj]s$'| xargs ./node_modules/.bin/eslint", + "compile": "hardhat compile", + "test-ts": "hardhat --network hardhat test" }, "devDependencies": { "@nomiclabs/hardhat-ethers": "2.0.6", @@ -64,7 +66,6 @@ "ds-math": "https://github.com/dapphub/ds-math", "ds-test": "https://github.com/dapphub/ds-test", "ds-token": "https://github.com/dapphub/ds-token", - "forge-std": "https://github.com/foundry-rs/forge-std", - "rimraf": "^3.0.2" + "forge-std": "https://github.com/foundry-rs/forge-std" } }