Enabling MetaMask security code scanner #209
Workflow file for this run
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: Build and Lint | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
build-lint: | |
name: Build and Lint | |
env: | |
INFURA_PROJECT_ID: ${{ secrets.INFURA_PROJECT_ID }} | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: yarn --frozen-lockfile | |
- run: yarn allow-scripts | |
- run: yarn lint | |
- name: Ensure demo build script works | |
run: yarn demo --all | |
- name: Validate RC changelog | |
if: ${{ startsWith(github.head_ref, 'release/') }} | |
run: yarn auto-changelog validate --rc | |
- name: Validate changelog | |
if: ${{ !startsWith(github.head_ref, 'release/') }} | |
run: yarn auto-changelog validate | |
all-jobs-pass: | |
name: All jobs pass | |
runs-on: ubuntu-20.04 | |
needs: | |
- build-lint | |
steps: | |
- run: echo "Great success!" |