Skip to content

Commit 565cacc

Browse files
committed
Github action stuff.
1 parent 3814917 commit 565cacc

3 files changed

Lines changed: 24 additions & 6 deletions

File tree

.github/workflows/build_and_test.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,9 @@ jobs:
1818
- uses: actions/checkout@v4
1919

2020
- name: Gradle
21-
run: ./gradlew check --no-daemon
21+
run: ./gradlew lintKotlin check codeCoverageReport --no-daemon
22+
23+
- name: Codecov
24+
uses: codecov/codecov-action@v5.5.2
25+
with:
26+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/publish.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- 'v*'
77

88
jobs:
9-
build:
9+
publish:
1010
runs-on: ubuntu-22.04
1111
container:
1212
image: eclipse-temurin:17.0.18_8-jdk-alpine-3.23
@@ -15,7 +15,14 @@ jobs:
1515
- uses: actions/checkout@v4
1616

1717
- name: Gradle build
18-
run: ./gradlew build --no-daemon
18+
run: |
19+
VERSION=${{ github.ref_name }}
20+
VERSION=${VERSION#v}
21+
export VERSION
22+
echo "Publish $VERSION"
23+
./gradlew lintKotlin check codeCoverageReport publishAggregationToCentralPortal --no-daemon
1924
20-
- name: Tests
21-
run: ./gradlew test --no-daemon
25+
- name: Codecov
26+
uses: codecov/codecov-action@v5.5.2
27+
with:
28+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/tag.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
branches:
55
- master
66
jobs:
7-
build:
7+
tag:
88
runs-on: ubuntu-22.04
99

1010
steps:
@@ -16,3 +16,9 @@ jobs:
1616
github_token: ${{ secrets.GITHUB_TOKEN }}
1717
default_bump: patch
1818
tag_prefix: v
19+
- name: Create a GitHub release
20+
uses: ncipollo/release-action@v1
21+
with:
22+
tag: ${{ steps.tag_version.outputs.new_tag }}
23+
name: Release ${{ steps.tag_version.outputs.new_tag }}
24+
body: ${{ steps.tag_version.outputs.changelog }}

0 commit comments

Comments
 (0)