Skip to content

Commit

Permalink
Correct build triggering path for each module
Browse files Browse the repository at this point in the history
  • Loading branch information
tuancoltech committed Mar 4, 2024
1 parent 5c7d6f8 commit 8298785
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 15 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build_filepicker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ name: Build the components
on:
push:
branches: [ main ]
paths: ['./filepicker/**']
paths:
- filepicker/**
pull_request:
branches: [ main ]
paths: ['./filepicker/**']
paths:
- filepicker/**


jobs:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build_folderstree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: Build the components

on:
push:
branches:
- main
- enhance/restructure_repository
paths: ['./folderstree/**']
branches: [ main ]
paths:
- folderstree/**
pull_request:
branches: [ main ]
paths: ['./folderstree/**']
paths:
- folderstree/**


jobs:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build_scorewidget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ name: Build the components
on:
push:
branches: [ main ]
paths: ['./scorewidget/**']
paths:
- scorewidget/**
pull_request:
branches: [ main ]
paths: ['./scorewidget/**']
paths:
- scorewidget/**


jobs:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build_tagselector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ name: Build the components
on:
push:
branches: [ main ]
paths: ['./tagselector/**']
paths:
- tagselector/**
pull_request:
branches: [ main ]
paths: ['./tagselector/**']
paths:
- tagselector/**


jobs:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build_utils.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ name: Build the components
on:
push:
branches: [ main ]
paths: ['./utils/**']
paths:
- utils/**
pull_request:
branches: [ main ]
paths: ['./utils/**']
paths:
- utils/**


jobs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class ExampleInstrumentedTest {
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("dev.arkbuilders.components.test", appContext.packageName)
System.out.println("Test useAppContext")
assertEquals("dev.arkbuilders.components.filepicker.test", appContext.packageName)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ class ExampleInstrumentedTest {
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("dev.arkbuilders.components.test", appContext.packageName)
assertEquals("dev.arkbuilders.components.folderstree.test", appContext.packageName)
}
}

0 comments on commit 8298785

Please sign in to comment.