Skip to content

Commit

Permalink
name and split the webpack caches
Browse files Browse the repository at this point in the history
also update the paths the v3-regression is watching so it runs in more cases
  • Loading branch information
scytacki committed Oct 9, 2024
1 parent b5f389f commit 0cdd283
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/v3-regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
paths: # only run this workflow if it contains v3 files
- 'v3/**' # https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#example-including-paths
- '.github/workflows/v3-regression.yml'
- '.github/workflows/v3.yml'
- '.github/workflows/run-regression-label.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -60,9 +62,9 @@ jobs:
- uses: actions/cache@v4
with:
path: v3/node_modules/.cache/webpack/
key: ${{ github.head_ref || github.ref_name }}-webpack-build
key: ${{ github.head_ref || github.ref_name }}-webpack-dev-build
restore-keys: |
main-webpack-build
main-webpack-dev-build
- uses: cypress-io/github-action@v6
with:
working-directory: v3
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ jobs:
- name: Install Dependencies
working-directory: v3
run: npm ci
- uses: actions/cache@v4
- name: Webpack Cache
uses: actions/cache@v4
with:
path: v3/node_modules/.cache/webpack/
key: ${{ github.head_ref || github.ref_name }}-webpack-build
Expand Down Expand Up @@ -63,7 +64,7 @@ jobs:
- name: Install Dependencies
working-directory: v3
run: npm ci
- name: Cache Jest cache
- name: Jest Cache
uses: actions/cache@v4
with:
path: /tmp/jest_rt
Expand Down Expand Up @@ -91,12 +92,13 @@ jobs:
- uses: snow-actions/[email protected]
with:
patterns: v3
- uses: actions/cache@v4
- name: Webpack Cache
uses: actions/cache@v4
with:
path: v3/node_modules/.cache/webpack/
key: ${{ github.head_ref || github.ref_name }}-webpack-build
key: ${{ github.head_ref || github.ref_name }}-webpack-dev-build
restore-keys: |
main-webpack-build
main-webpack-dev-build
- uses: cypress-io/github-action@v6
with:
working-directory: v3
Expand Down

0 comments on commit 0cdd283

Please sign in to comment.