fix: multi-scf support yunti tag issue fix #346
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: Validate | |
on: | |
pull_request: | |
branches: [master] | |
jobs: | |
lintAndFormatting: | |
name: Lint & Formatting | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
# Ensure connection with 'master' branch | |
fetch-depth: 2 | |
- name: Install Node.js and npm | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14.x | |
registry-url: https://registry.npmjs.org | |
- name: Retrieve last master commit (for `git diff` purposes) | |
run: | | |
git checkout -b pr | |
git fetch --prune --depth=20 origin +refs/heads/master:refs/remotes/origin/master | |
git checkout master | |
git checkout pr | |
- name: Retrieve dependencies from cache | |
id: cacheNpm | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.npm | |
node_modules | |
key: npm-v14-${{ runner.os }}-${{ github.ref }}-${{ hashFiles('package.json') }} | |
restore-keys: | | |
npm-v14-${{ runner.os }}-${{ github.ref }}- | |
npm-v14-${{ runner.os }}-refs/heads/master- | |
- name: Install dependencies | |
if: steps.cacheNpm.outputs.cache-hit != 'true' | |
run: | | |
npm ci | |
- name: Validate Formatting | |
run: npm run prettier:fix | |
- name: Validate Lint rules | |
run: npm run lint:fix |