|
@@ -17,6 +17,7 @@ on:
|
|
|
|
|
|
env:
|
|
|
YARN_ENABLE_GLOBAL_CACHE: false
|
|
|
+ SKIP_YARN_COREPACK_CHECK: true
|
|
|
|
|
|
jobs:
|
|
|
lint_js:
|
|
@@ -25,22 +26,12 @@ jobs:
|
|
|
steps:
|
|
|
- name: Checkout sources
|
|
|
uses: actions/checkout@v4
|
|
|
- - name: Get yarn cache directory path
|
|
|
- id: yarn-cache-dir-path
|
|
|
- run:
|
|
|
- echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
|
|
|
|
|
- - uses: actions/cache@v4
|
|
|
- id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
|
|
- with:
|
|
|
- path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
|
- key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
|
- restore-keys: |
|
|
|
- ${{ runner.os }}-yarn-
|
|
|
- name: Install Node.js
|
|
|
uses: actions/setup-node@v4
|
|
|
with:
|
|
|
node-version: lts/*
|
|
|
+ cache: yarn
|
|
|
- name: Install dependencies
|
|
|
# List all projects that use a custom ESLint config:
|
|
|
run:
|
|
@@ -57,22 +48,11 @@ jobs:
|
|
|
steps:
|
|
|
- name: Checkout sources
|
|
|
uses: actions/checkout@v4
|
|
|
- - name: Get yarn cache directory path
|
|
|
- id: yarn-cache-dir-path
|
|
|
- run:
|
|
|
- echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT
|
|
|
-
|
|
|
- - uses: actions/cache@v4
|
|
|
- id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
|
|
- with:
|
|
|
- path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
|
- key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
|
- restore-keys: |
|
|
|
- ${{ runner.os }}-yarn-
|
|
|
- name: Install Node.js
|
|
|
uses: actions/setup-node@v4
|
|
|
with:
|
|
|
node-version: lts/*
|
|
|
+ cache: yarn
|
|
|
- name: Install dependencies
|
|
|
run: corepack yarn workspaces focus @uppy-dev/build
|
|
|
- name: Run linter
|