Skip to content

Commit

Permalink
Only run file system-related tests on Mac and Windows (#1791)
Browse files Browse the repository at this point in the history
* Only perform a full build on Ubuntu since on other OS we are only interested in file system related interactions

* Avoid introducing new variable into matrix

* Use check instead of allTests

* Rename step to reflect which Gradle task it actually executes

Co-authored-by: Jake Wharton <[email protected]>

---------

Co-authored-by: Jake Wharton <[email protected]>
  • Loading branch information
drawers and JakeWharton authored Jan 2, 2024
1 parent a2688d0 commit 43b6850
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,14 @@ jobs:
distribution: 'zulu'
java-version: 19

- name: Test
- name: Full build
if: matrix.os == 'ubuntu-latest'
run: ./gradlew build

- name: KotlinPoet check
if: "matrix.os != 'ubuntu-latest'"
run: ./gradlew :kotlinpoet:check

build-docs:
runs-on: ubuntu-latest
if: github.repository == 'square/kotlinpoet'
Expand Down

0 comments on commit 43b6850

Please sign in to comment.