Lint and Test from Root #1620
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: Lint and Test from Root | |
# run CI on pushes to main, and on all PRs (even the ones that target other | |
# branches) | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
schedule: | |
- cron: '0 12 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- name: Checkout Dapp | |
uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: yarn install | |
run: yarn install | |
- name: yarn build | |
run: yarn build | |
- name: yarn lint | |
run: yarn lint | |
- name: yarn test | |
run: yarn test |