Skip to content

Commit

Permalink
feat: fix snapshot actions (#244)
Browse files Browse the repository at this point in the history
* refactor: AnimationTestRule 코드 스타일 정리

* feat: paparazzi 디바이스 옵션 추가

* refactor: if 위치 변경

* refactor: 사용하지 않는 테스트 인자 제거

* feat: 잘못된 if 구문 정정
  • Loading branch information
jisungbin committed Oct 8, 2022
1 parent 4736639 commit c109124
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/artifact-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:

jobs:
artifacts-publish:
runs-on: ubuntu-latest
if: ${{
github.event.pull_request.merged &&
contains(github.event.pull_request.labels.*.name, 'publish') &&
Expand All @@ -26,7 +27,6 @@ jobs:
contains(github.event.pull_request.labels.*.name, 'target_ui-components')
)
}}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/playground-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ on:

jobs:
playground-release:
runs-on: ubuntu-latest
if: ${{
github.event.pull_request.merged &&
contains(github.event.pull_request.labels.*.name, 'release') &&
(contains(github.event.pull_request.labels.*.name, 'bump_major') ||
contains(github.event.pull_request.labels.*.name, 'bump_minor') ||
contains(github.event.pull_request.labels.*.name, 'bump_patch')
)
github.event.pull_request.merged &&
contains(github.event.pull_request.labels.*.name, 'release') &&
(contains(github.event.pull_request.labels.*.name, 'bump_major') ||
contains(github.event.pull_request.labels.*.name, 'bump_minor') ||
contains(github.event.pull_request.labels.*.name, 'bump_patch')
)
}}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/verify-snapshots-failed-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ on:
jobs:
comment:
runs-on: ubuntu-latest
if: verify-snapshots-failed-comment.yml
if: github.event.workflow_run.conclusion == 'success'

steps:
- name: Download snapshots verify result
uses: actions/github-script@v3.1.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,11 @@ class QuackTag {
)
@Test
fun QuackRowTag(
@TestParameter isSelected: Boolean,
@TestParameter("1.0", "1.5") fontScale: Float,
@TestParameter deviceConfig: QuackDeviceConfig,
) {
paparazzi.boxSnapshot(
parameterNames = listOf(
"isSelected",
"fontScale",
"deviceConfig",
),
Expand Down

0 comments on commit c109124

Please sign in to comment.