🔧 Fix YAML

This commit is contained in:
Iván Ovejero 2022-09-19 17:34:55 +02:00
parent 973e66700e
commit 8ca3210c41

View file

@ -14,17 +14,25 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, test, and lint
- name: Install npm and dependencies
run: npm install -g npm@latest && npm install
- name: Build
run: npm run build --if-present
- name: Test
run: npm run test
- name: Fetch base branch for `git diff`
run: git fetch origin ${{ github.event.pull_request.base.ref }}:${{ github.event.pull_request.base.ref }}
- name: Run ESLint on changes only
env:
CI: true
ESLINT_PLUGIN_DIFF_COMMIT: ${{ github.event.pull_request.base.ref }}
run: |
npm install -g npm@latest
npm install
npm run build --if-present
npm test
npm run lint
run: npm run lint