onActivityItem hook + UI #448
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: Validate SIP | |
| on: | |
| pull_request: | |
| paths: | |
| - "SIPS/**" | |
| jobs: | |
| validate: | |
| name: Validate SIPs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout and setup environment | |
| uses: MetaMask/action-checkout-and-setup@v1 | |
| with: | |
| is-high-risk-environment: true | |
| - name: Build | |
| run: yarn workspace validate build | |
| - name: Validate all SIPs | |
| run: yarn workspace validate lint | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_PULL_REQUEST: ${{ github.event.pull_request.number }} | |
| GITHUB_SHA_PULL_REQUEST: ${{ github.event.pull_request.head.sha }} | |
| FORCE_COLOR: 3 | |
| - name: Require clean working directory | |
| shell: bash | |
| run: | | |
| if ! git diff --exit-code; then | |
| echo "Working tree dirty at end of job" | |
| exit 1 | |
| fi |