Merge pull request #12 from zkLinkProtocol/issue_8 #4
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: github action CI | |
on: | |
pull_request: | |
branches: | |
- main | |
- testnet | |
push: | |
branches: | |
- main | |
- testnet | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
name: Test solidity contracts | |
steps: | |
- name: Clone repo | |
uses: actions/checkout@v3 | |
- name: Setup node environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install dependencies | |
run: npm ci | |
- name: Compile contracts | |
run: npm run compile | |
- name: Test contracts | |
run: npm run test |