-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
configure CI so it runs the defined linters
- Loading branch information
1 parent
2b1970f
commit 308d288
Showing
2 changed files
with
19 additions
and
36 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
name: install | ||
with: | ||
cmd: install | ||
- uses: borales/[email protected] | ||
name: compile | ||
with: | ||
cmd: hardhat compile | ||
- uses: borales/[email protected] | ||
name: tests | ||
with: | ||
cmd: hardhat test --network hardhat | ||
env: | ||
FORK_URL: ${{ secrets.FORK_URL }} | ||
DEV_MNEMONIC: ${{ secrets.DEV_MNEMONIC }} | ||
|
||
- uses: borales/[email protected] | ||
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 |
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