Fix library flags test
This commit is contained in:
parent
5742d2e3fe
commit
6db1637770
19
.github/workflows/build_push_preview.yml
vendored
19
.github/workflows/build_push_preview.yml
vendored
@ -1,10 +1,10 @@
|
||||
name: Remote Dispatch Action Initiator
|
||||
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
branches:
|
||||
- 'preview'
|
||||
|
||||
|
||||
jobs:
|
||||
trigger_preview_build:
|
||||
name: Trigger preview build
|
||||
@ -14,8 +14,14 @@ jobs:
|
||||
- name: Clone repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Validate Gradle Wrapper
|
||||
uses: gradle/actions/wrapper-validation@v4
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: 17
|
||||
distribution: temurin
|
||||
|
||||
- name: Set up gradle
|
||||
uses: gradle/actions/setup-gradle@v4
|
||||
|
||||
- name: Create Tag
|
||||
run: |
|
||||
@ -28,3 +34,6 @@ jobs:
|
||||
-H 'Accept: application/vnd.github.everest-preview+json' \
|
||||
-u ${{ secrets.ACCESS_TOKEN }} \
|
||||
--data '{"event_type": "ping", "client_payload": { "repository": "'"$GITHUB_REPOSITORY"'" }}'
|
||||
|
||||
- name: Run unit tests
|
||||
run: ./gradlew testDebugUnitTest testDevDebugUnitTest
|
||||
|
@ -12,7 +12,7 @@ class LibraryFlagsTest {
|
||||
@Test
|
||||
fun `Check the amount of flags`() {
|
||||
LibraryDisplayMode.values.size shouldBe 4
|
||||
LibrarySort.types.size shouldBe 10
|
||||
LibrarySort.types.size shouldBe 11
|
||||
LibrarySort.directions.size shouldBe 2
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user