This repository was archived by the owner on Nov 6, 2025. It is now read-only.
Add files via upload #866
This file contains hidden or 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: test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| name: build and test on Node ${{ matrix.node }} and ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| node: ["14.x"] | |
| os: [ubuntu-latest, windows-latest, macOS-latest] | |
| env: | |
| WEB3_PROVIDER_WSS: ${{ secrets.WEB3_PROVIDER_WSS }} | |
| ETHERSCAN_KEY: ${{ secrets.ETHERSCAN_KEY }} | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v2 | |
| - name: Use Node ${{ matrix.node }} | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - name: Install deps and build (with cache) | |
| uses: bahmutov/npm-install@v1 | |
| - name: Build | |
| run: yarn build | |
| - name: Test | |
| run: yarn test --ci --coverage --maxWorkers=2 |