Skip to content

Commit dc50634

Browse files
committed
Prettier
1 parent 8fd036e commit dc50634

File tree

1 file changed

+9
-11
lines changed
  • src/app/reference/ci-workflows/upload-strategies

1 file changed

+9
-11
lines changed

src/app/reference/ci-workflows/upload-strategies/page.md

+9-11
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default defineConfig({
7272
replayPlugin(on, config, {
7373
apiKey: process.env.REPLAY_API_KEY,
7474
upload: {
75-
statusThreshold: "failed"
75+
statusThreshold: 'failed',
7676
},
7777
})
7878
return config
@@ -126,14 +126,13 @@ export default defineConfig({
126126
replayPlugin(on, config, {
127127
apiKey: process.env.REPLAY_API_KEY,
128128
upload: {
129-
statusThreshold: "failed-and-flaky"
129+
statusThreshold: 'failed-and-flaky',
130130
},
131131
})
132132
return config
133133
},
134134
},
135135
})
136-
137136
```
138137

139138
{% /tab %}
@@ -169,10 +168,11 @@ export default config;
169168
## Upload only for the primary branch
170169

171170
Many CI providers provide an environment variable that references the current branch name.
172-
* [CircleCI](https://circleci.com/docs/2.0/env-vars/#built-in-environment-variables): `$CIRCLE_BRANCH`
173-
* [GitLab](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html): `$CI_COMMIT_REF_NAME`
174-
* [Semaphore](https://docs.semaphoreci.com/ci-cd-environment/environment-variables/): `$SEMAPHORE_GIT_BRANCH`
175-
* [Travis](https://docs.travis-ci.com/user/environment-variables/#default-environment-variables): `$TRAVIS_BRANCH`
171+
172+
- [CircleCI](https://circleci.com/docs/2.0/env-vars/#built-in-environment-variables): `$CIRCLE_BRANCH`
173+
- [GitLab](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html): `$CI_COMMIT_REF_NAME`
174+
- [Semaphore](https://docs.semaphoreci.com/ci-cd-environment/environment-variables/): `$SEMAPHORE_GIT_BRANCH`
175+
- [Travis](https://docs.travis-ci.com/user/environment-variables/#default-environment-variables): `$TRAVIS_BRANCH`
176176

177177
GitHub [stores this value in a default variable](https://docs.github.com/en/actions/learn-github-actions/variables) named `GITHUB_BASE_REF` that can be passed along as [part of a Workflow](https://docs.github.com/en/actions/learn-github-actions/environment-variables) and then referenced in the Playwright config, e.g.:
178178

@@ -186,7 +186,7 @@ export default defineConfig({
186186
const on = wrapOn(cyOn)
187187
replayPlugin(on, config, {
188188
apiKey: process.env.REPLAY_API_KEY,
189-
upload: process.env.BRANCH_NAME === "main"
189+
upload: process.env.BRANCH_NAME === 'main',
190190
})
191191
return config
192192
},
@@ -244,7 +244,6 @@ export default defineConfig({
244244
},
245245
},
246246
})
247-
248247
```
249248

250249
{% /tab %}
@@ -293,14 +292,13 @@ export default defineConfig({
293292
apiKey: process.env.REPLAY_API_KEY,
294293
upload: {
295294
minimizeUploads: true,
296-
statusThreshold: "failed",
295+
statusThreshold: 'failed',
297296
},
298297
})
299298
return config
300299
},
301300
},
302301
})
303-
304302
```
305303

306304
{% /tab %}

0 commit comments

Comments
 (0)