|
@@ -40,13 +40,10 @@ jobs:
|
|
|
id: yarn-cache-dir-path
|
|
|
run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
|
|
|
|
- - uses: actions/cache@v2
|
|
|
- id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
|
|
+ - uses: actions/cache@v1 # We are explicitly using v1 due to perf reasons
|
|
|
with:
|
|
|
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
|
- key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock', 'api-docs/yarn.lock') }}
|
|
|
- restore-keys: |
|
|
|
- ${{ runner.os }}-yarn-
|
|
|
+ key: ${{ runner.os }}-v2-yarn-${{ hashFiles('yarn.lock', 'api-docs/yarn.lock') }}
|
|
|
|
|
|
- name: Install dependencies
|
|
|
run: yarn install --frozen-lockfile
|
|
@@ -102,21 +99,16 @@ jobs:
|
|
|
echo "::set-output name=dist-path::src/sentry/static/sentry/dist"
|
|
|
|
|
|
- name: yarn cache
|
|
|
- uses: actions/cache@v2
|
|
|
- id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
|
|
+ uses: actions/cache@v1 # We are explicitly using v1 due to perf reasons
|
|
|
with:
|
|
|
path: ${{ steps.config.outputs.yarn-path }}
|
|
|
- key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock', 'api-docs/yarn.lock') }}
|
|
|
- restore-keys: |
|
|
|
- ${{ runner.os }}-yarn-
|
|
|
+ key: ${{ runner.os }}-v2-yarn-${{ hashFiles('yarn.lock', 'api-docs/yarn.lock') }}
|
|
|
|
|
|
- name: webpack cache
|
|
|
uses: actions/cache@v2
|
|
|
with:
|
|
|
path: ${{ steps.config.outputs.webpack-path }}
|
|
|
- key: ${{ runner.os }}-webpack-cache-${{ hashFiles('webpack.config.ts') }}
|
|
|
- restore-keys: |
|
|
|
- ${{ runner.os }}-webpack-cache-
|
|
|
+ key: ${{ runner.os }}-v2-webpack-cache-${{ hashFiles('webpack.config.ts') }}
|
|
|
|
|
|
- name: Install Javascript Dependencies
|
|
|
run: |
|
|
@@ -179,8 +171,6 @@ jobs:
|
|
|
path: ${{ steps.pip.outputs.pip-cache-dir }}
|
|
|
key: |
|
|
|
${{ runner.os }}-py${{ steps.python-version.outputs.python-version }}-pip${{ steps.pip.outputs.pip-version }}-${{ secrets.PIP_CACHE_VERSION }}-${{ hashFiles('requirements-*.txt', '!requirements-pre-commit.txt') }}
|
|
|
- restore-keys: |
|
|
|
- ${{ runner.os }}-py${{ steps.python-version.outputs.python-version }}-pip${{ steps.pip.outputs.pip-version }}-${{ secrets.PIP_CACHE_VERSION }}
|
|
|
|
|
|
- name: Setup sentry python env
|
|
|
uses: ./.github/actions/setup-sentry
|
|
@@ -263,8 +253,6 @@ jobs:
|
|
|
path: ${{ steps.pip.outputs.pip-cache-dir }}
|
|
|
key: |
|
|
|
${{ runner.os }}-py${{ steps.python-version.outputs.python-version }}-pip${{ steps.pip.outputs.pip-version }}-${{ secrets.PIP_CACHE_VERSION }}-${{ hashFiles('requirements-*.txt', '!requirements-pre-commit.txt') }}
|
|
|
- restore-keys: |
|
|
|
- ${{ runner.os }}-py${{ steps.python-version.outputs.python-version }}-pip${{ steps.pip.outputs.pip-version }}-${{ secrets.PIP_CACHE_VERSION }}
|
|
|
|
|
|
- name: Setup sentry env
|
|
|
uses: ./.github/actions/setup-sentry
|
|
@@ -273,13 +261,10 @@ jobs:
|
|
|
chartcuterie: true
|
|
|
|
|
|
- name: yarn cache
|
|
|
- uses: actions/cache@v2
|
|
|
- id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
|
|
+ uses: actions/cache@v1 # We are explicitly using v1 due to perf reasons
|
|
|
with:
|
|
|
path: ${{ steps.setup.outputs.yarn-cache-dir }}
|
|
|
- key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock', 'api-docs/yarn.lock') }}
|
|
|
- restore-keys: |
|
|
|
- ${{ runner.os }}-yarn-
|
|
|
+ key: ${{ runner.os }}-v2-yarn-${{ hashFiles('yarn.lock', 'api-docs/yarn.lock') }}
|
|
|
|
|
|
- name: Install Javascript Dependencies
|
|
|
run: |
|