add rpc router section to SIP-26 #282
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: 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 |