-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
32 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,6 @@ on: | |
push: | ||
branches: [ main ] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
|
@@ -27,7 +24,7 @@ jobs: | |
- name: Build | ||
run: | | ||
chmod +x gradlew | ||
./gradlew projects clean build --no-daemon --refresh-dependencies | ||
./gradlew clean build | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v4 | ||
|
@@ -51,34 +48,14 @@ jobs: | |
distribution: corretto | ||
java-version: 21 | ||
|
||
- name: Integration Test | ||
- name: Integration test | ||
run: | | ||
chmod +x gradlew | ||
./gradlew projects clean integrationTest --no-daemon --refresh-dependencies | ||
./gradlew clean integrationTest | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
flags: integration-tests-${{ matrix.os }} | ||
fail_ci_if_error: true | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
release: | ||
needs: [ build, integration-test ] | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Bump version | ||
id: version | ||
uses: paulhatch/[email protected] | ||
|
||
- name: Create GitHub tag and release | ||
uses: softprops/[email protected] | ||
with: | ||
tag_name: ${{ steps.version.outputs.version_tag }} | ||
generate_release_notes: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: release | ||
|
||
on: | ||
workflow_run: | ||
workflows: [ build ] | ||
types: [ completed ] | ||
branches: [ main ] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Bump version | ||
id: version | ||
uses: paulhatch/[email protected] | ||
|
||
- name: Create GitHub tag and release | ||
uses: softprops/[email protected] | ||
with: | ||
tag_name: ${{ steps.version.outputs.version_tag }} | ||
generate_release_notes: true |