Skip to content

SIP-29 Improvements #300

SIP-29 Improvements

SIP-29 Improvements #300

Workflow file for this run

name: Validate SIP
on:
pull_request:
paths:
- "SIPS/**"
jobs:
validate:
name: Validate SIPs
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./tools/validate
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version-file: "./tools/validate/.nvmrc"
- name: Get Yarn version
run: echo "::set-output name=YARN_VERSION::$(yarn --version)"
id: yarn-version
- name: Cache yarn dependencies
uses: actions/cache@v2
with:
path: tools/validate/.yarn/cache
key: yarn-cache-validate-${{ steps.yarn-version.outputs.YARN_VERSION }}-${{ hashFiles('tools/validate/yarn.lock') }}
- run: yarn install --immutable
- run: yarn build
- name: Validate all SIPs
run: yarn 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