diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a5a36d26..ff209a25 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,11 +1,33 @@ name: Build - +env: + PATH_EXAMPLES: 'examples/**' + PATH_LIB: 'lib/**' + PATH_STARTERS: 'starters/**' + PATH_GRADLE: 'gradle/**' + PATH_GRADLE_KTS: 'build.gradle.kts' + PATH_SETTINGS_KTS: 'settings.gradle.kts' + PATH_BUILD_SRC: 'buildSrc/**' on: push: branches: [ main ] + paths: + - ${{ env.PATH_EXAMPLES }} + - ${{ env.PATH_LIB }} + - ${{ env.PATH_STARTERS }} + - ${{ env.PATH_GRADLE }} + - ${{ env.PATH_GRADLE_KTS }} + - ${{ env.PATH_SETTINGS_KTS }} + - ${{ env.PATH_BUILD_SRC }} pull_request: branches: [ main ] - + paths: + - ${{ env.PATH_EXAMPLES }} + - ${{ env.PATH_LIB }} + - ${{ env.PATH_STARTERS }} + - ${{ env.PATH_GRADLE }} + - ${{ env.PATH_GRADLE_KTS }} + - ${{ env.PATH_SETTINGS_KTS }} + - ${{ env.PATH_BUILD_SRC }} jobs: build-and-test: runs-on: ubuntu-latest