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: "Execute lint and test" | |
on: | |
pull_request: | |
branches: | |
- develop | |
push: | |
branches: | |
- develop | |
jobs: | |
test-smart-contracts-and-build-gateway: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
working-directory: ./packages/contracts | |
run: yarn install | |
- name: Lint the code | |
working-directory: ./packages/contracts | |
run: yarn lint | |
- name: Run tests | |
working-directory: ./packages/contracts | |
env: | |
L2_PROVIDER_URL: ${{ secrets.L2_PROVIDER_URL }} | |
L1_PROVIDER_URL: ${{ secrets.L1_PROVIDER_URL }} | |
run: yarn test | |
- name: Build Gateway | |
working-directory: ./packages/gateway | |
run: | | |
yarn install | |
yarn build |