Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8eca1b1

Browse files
committedJan 26, 2023
CI with Github action
1 parent 1d5d7f2 commit 8eca1b1

6 files changed

+169
-0
lines changed
 

‎.github/changelog-configuration.json

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"categories": [
3+
{
4+
"title": "## 💡 Features",
5+
"labels": [
6+
"feature",
7+
"enhancement"
8+
]
9+
},
10+
{
11+
"title": "## 🐛 Fixes",
12+
"labels": [
13+
"fix",
14+
"bug"
15+
]
16+
},
17+
{
18+
"title": "## 💬 Maintenance",
19+
"labels": [
20+
"maintenance"
21+
]
22+
}
23+
],
24+
"ignore_labels": [
25+
"dependencies",
26+
"gradle-wrapper"
27+
],
28+
"sort": "ASC",
29+
"template": "${{CHANGELOG}}",
30+
"pr_template": "- ${{TITLE}} #${{NUMBER}}",
31+
"empty_template": "- no changes"
32+
}

‎.github/dependabot.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "gradle" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "daily"
12+
- package-ecosystem: "github-actions"
13+
directory: "/" # Location of package manifests
14+
schedule:
15+
interval: "weekly"
+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
build:
10+
name: Publish release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
- name: Install JDK ${{ matrix.java_version }}
18+
uses: actions/setup-java@v3
19+
with:
20+
distribution: 'adopt'
21+
java-version: 11
22+
- name: Build Changelog
23+
id: github_release
24+
uses: mikepenz/release-changelog-builder-action@main
25+
with:
26+
configuration: ".github/changelog-configuration.json"
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
- name: Get the version
30+
id: tagger
31+
uses: jimschubert/query-tag-action@v2
32+
with:
33+
skip-unshallow: 'true'
34+
abbrev: false
35+
commit-ish: HEAD
36+
- name: Install Android SDK
37+
uses: malinskiy/action-android/install-sdk@release/0.1.2
38+
- name: Build project
39+
run: ./gradlew assembleRelease
40+
env:
41+
VERSION: ${{steps.tagger.outputs.tag}}
42+
- name: Create Release
43+
uses: softprops/action-gh-release@v1
44+
with:
45+
tag_name: ${{steps.tagger.outputs.tag}}
46+
prerelease: ${{steps.tagger.outputs.tag}} == *"alpha"* || ${{steps.tagger.outputs.tag}} == *"beta"*
47+
name: ${{steps.tagger.outputs.tag}}
48+
body: ${{steps.github_release.outputs.changelog}}
49+
files: |
50+
./libStream/build/outputs/aar/libStream*.aar
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

‎.github/workflows/Android-CI.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
BuildTest:
11+
name: Build and test JDK ${{ matrix.java_version }}
12+
runs-on: macOS-latest
13+
strategy:
14+
matrix:
15+
java_version: [11]
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
- name: Install JDK ${{ matrix.java_version }}
20+
uses: actions/setup-java@v2
21+
with:
22+
distribution: 'adopt'
23+
java-version: ${{ matrix.java_version }}
24+
- name: Install Android SDK
25+
uses: malinskiy/action-android/install-sdk@release/0.1.2
26+
- name: Build project
27+
run: ./gradlew assembleDebug
28+
- name: gradle check
29+
run: ./gradlew check
30+
- name: Archive Lint report
31+
uses: actions/upload-artifact@v3
32+
if: ${{ always() }}
33+
with:
34+
name: Logcat-Lint-report
35+
path: sample/build/reports/lint-results.html
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: "Validate Gradle Wrapper"
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
validation:
13+
name: "Validation"
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: gradle/wrapper-validation-action@v1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Update Gradle Wrapper
2+
3+
on:
4+
schedule:
5+
- cron: "0 6 * * MON"
6+
7+
jobs:
8+
update-gradle-wrapper:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- name: Update Gradle Wrapper
15+
uses: gradle-update/update-gradle-wrapper-action@v1
16+
with:
17+
repo-token: ${{ secrets.GITHUB_TOKEN }}
18+
set-distribution-checksum: false

0 commit comments

Comments
 (0)
Please sign in to comment.