Skip to content

Commit

Permalink
Remove actions/cache (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Feb 27, 2023
1 parent 9d24fdf commit 05e877e
Showing 1 changed file with 3 additions and 39 deletions.
42 changes: 3 additions & 39 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,7 @@ jobs:
uses: actions/setup-node@v3.6.0
with:
node-version: ${{ env.node-NODE_VERSION }}

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"

- name: Check yarn cache
uses: actions/cache@v3.2.6
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
cache: 'yarn'

- name: Lint YAML files
run: |
Expand All @@ -72,19 +60,7 @@ jobs:
uses: actions/setup-node@v3.6.0
with:
node-version: ${{ env.node-NODE_VERSION }}

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"

- name: Check yarn cache
uses: actions/cache@v3.2.6
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
cache: 'yarn'

- name: Install dependencies
run: yarn install --immutable
Expand All @@ -104,19 +80,7 @@ jobs:
uses: actions/setup-node@v3.6.0
with:
node-version: ${{ env.node-NODE_VERSION }}

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"

- name: Check yarn cache
uses: actions/cache@v3.2.6
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
cache: 'yarn'

- name: Install dependencies
run: yarn install --immutable
Expand Down

0 comments on commit 05e877e

Please sign in to comment.