Skip to content

Commit f94e37e

Browse files
author
Sergey Tatarintsev
committed
Ensure that test actually fails when things are broken
Test could never actually fail, because the only thing it doess is checks that `test_indicator` element exists and that element was shown regardless of test result. Fixed that by giving different test ids to success and failure indicators. At the moment, tests deliberately fail because custom databases are not supported.
1 parent a02f4aa commit f94e37e

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/update-and-publish.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
type: string
88
required: true
99
version:
10-
description: npm version to publish
10+
description: client version to update to and publish
1111
type: string
1212
required: true
1313
secrets:
@@ -19,10 +19,14 @@ on:
1919
inputs:
2020
npmTag:
2121
description: npm tag to publish to
22-
type: string
22+
type: choice
23+
options:
24+
- latest
25+
- dev
26+
- integration
2327
required: true
2428
version:
25-
description: npm version to publish
29+
description: client version to update to and publish
2630
type: string
2731
required: true
2832

@@ -93,7 +97,9 @@ jobs:
9397
run: yarn npm publish --tag "$NPM_TAG"
9498

9599
- name: Push
96-
run: git push origin main
100+
env:
101+
GITHUB_REF: ${{ github.ref }}
102+
run: git push origin "$GITHUB_REF"
97103

98104
notify-on-failure:
99105
name: Notify on publish failure

0 commit comments

Comments
 (0)