Skip to content

Commit 2ecad35

Browse files
authored
chore: fail on cache miss during restore build folders step [DX-729] (#2641)
* chore: fail on cache miss during restore build folders step [DX-729] * chore: adjust main.yaml to run on all branch pushes []
1 parent 125cebb commit 2ecad35

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/check.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ jobs:
7676
path: |
7777
dist
7878
key: build-cache-${{ github.run_id }}-${{ github.run_attempt }}
79+
fail-on-cache-miss: true
7980

8081
- name: Run tests
8182
run: npm test
@@ -108,6 +109,7 @@ jobs:
108109
path: |
109110
dist
110111
key: build-cache-${{ github.run_id }}-${{ github.run_attempt }}
112+
fail-on-cache-miss: true
111113

112114
- name: Test bundle size
113115
run: npm run test:size
@@ -137,6 +139,7 @@ jobs:
137139
path: |
138140
dist
139141
key: build-cache-${{ github.run_id }}-${{ github.run_attempt }}
142+
fail-on-cache-miss: true
140143

141144
- name: Test TypeScript types
142145
run: npm run test:types

.github/workflows/main.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ permissions:
44

55
on:
66
push:
7-
branches:
8-
- master
9-
pull_request:
7+
branches: ['**']
108

119
jobs:
1210
build:

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
path: |
6262
dist
6363
key: build-cache-${{ github.run_id }}-${{ github.run_attempt }}
64+
fail-on-cache-miss: true
6465

6566
- name: Setup Chrome
6667
uses: browser-actions/setup-chrome@v2

0 commit comments

Comments
 (0)