ci: remove turbo cache

This commit is contained in:
iCrawl
2022-07-18 13:16:16 +02:00
parent ed94b3d9ec
commit b316ac7cc4
3 changed files with 6 additions and 42 deletions

View File

@@ -34,23 +34,14 @@ jobs:
cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Turbo cache
id: turbo-cache
uses: actions/cache@v3
with:
path: .turbo
key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
turbo-${{ github.job }}-${{ github.ref_name }}-
- name: Install dependencies
run: yarn --immutable
- name: Build dependencies
run: yarn build --cache-dir=".turbo"
run: yarn build
- name: Build docs
run: yarn docs --cache-dir=".turbo"
run: yarn docs
- name: Upload docgen artifacts
uses: actions/upload-artifact@v3
@@ -95,20 +86,11 @@ jobs:
cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Turbo cache
id: turbo-cache
uses: actions/cache@v3
with:
path: .turbo
key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
turbo-${{ github.job }}-${{ github.ref_name }}-
- name: Install dependencies
run: yarn --immutable
- name: Build actions
run: yarn build --cache-dir=".turbo"
run: yarn build
- name: Download docgen artifacts
uses: actions/download-artifact@v3

View File

@@ -36,15 +36,6 @@ jobs:
cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Turbo cache
id: turbo-cache
uses: actions/cache@v3
with:
path: .turbo
key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
turbo-${{ github.job }}-${{ github.ref_name }}-
- name: Check previous released version
id: pre-release
run: |
@@ -58,7 +49,7 @@ jobs:
- name: Build dependencies
if: steps.pre-release.outputs.release == 'true'
run: yarn build --cache-dir=".turbo"
run: yarn build
- name: Deprecate old versions
if: steps.pre-release.outputs.release == 'true'

View File

@@ -15,20 +15,11 @@ jobs:
cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Turbo cache
id: turbo-cache
uses: actions/cache@v3
with:
path: .turbo
key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
turbo-${{ github.job }}-${{ github.ref_name }}-
- name: Install dependencies
run: yarn --immutable
- name: ESLint
run: yarn lint --cache-dir=".turbo"
run: yarn lint
- name: Tests
run: yarn test
@@ -38,4 +29,4 @@ jobs:
if: github.repository_owner == 'discordjs'
- name: Build
run: yarn build --cache-dir=".turbo"
run: yarn build