remove oklink stuff #605
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: eslint | |
on: push | |
jobs: | |
lint: | |
if: github.actor != 'dependabot[bot]' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # allows diff with origin/master | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v3 | |
id: yarn-cache | |
with: | |
path: | | |
**/node_modules | |
${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- run: yarn install --frozen-lockfile --ignore-scripts | |
- name: ESLint diff only | |
run: yarn run lint:diff --max-warnings=0 | |
- name: Eslint cache | |
id: eslint-cache | |
uses: actions/cache@v3 | |
with: | |
path: ./.eslintcache | |
key: eslint-${{ runner.os }}-${{ github.run_id }} | |
restore-keys: | | |
eslint-${{ runner.os }} |