Skip to content

Commit

Permalink
chore(CI): checkout all history
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Kesselring authored and Marcel Kesselring committed Aug 7, 2023
1 parent 8778fb0 commit a77b185
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# needed for FirstCommitHashTaskTest
fetch-depth: 0
- name: Cache
uses: gradle/gradle-build-action@v2
- name: Build
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# needed for FirstCommitHashTaskTest
fetch-depth: 0
- name: Cache
uses: gradle/gradle-build-action@v2
- name: Build
run: ./gradlew build
- name: Validate
run: ./gradlew check validatePlugins --continue
run: ./gradlew validatePlugins --continue
- name: Publish
run: ./gradlew publishPlugins
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class FirstCommitHashTaskTest {
assertEquals(TaskOutcome.SUCCESS, result.task(":firstCommitHash")?.outcome)
File("${testProjectDir.root.absolutePath}/build/$extensionName/firstCommitHash").apply {
assertTrue(exists())
// this is the first commit hash of the octopus-deploy-plugin git repo itself
assertEquals("9c82501b25fd6c03bd6f3074739496b498cf3938", readText())
}
}
Expand Down

0 comments on commit a77b185

Please sign in to comment.