Skip to content

Commit

Permalink
V1.0.3 (#5)
Browse files Browse the repository at this point in the history
- Version names
- Version codes
- Custom version formats
- Custom sources
- Authenticated Github update checks
  • Loading branch information
Sharkaboi authored Mar 24, 2024
1 parent e9c9578 commit 0d3eb01
Show file tree
Hide file tree
Showing 73 changed files with 2,185 additions and 1,132 deletions.
64 changes: 17 additions & 47 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,66 +5,36 @@ on: [ push, pull_request ]
jobs:
build:
name: Gradle Build
timeout-minutes: 60
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v1

- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}
uses: actions/checkout@v3

- name: set up JDK 11
uses: actions/setup-java@v2
- name: set up JDK
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '17'
distribution: 'adopt'

- name: Setup Gradle with cache
uses: gradle/actions/setup-gradle@v3

- name: Setup Gradle
run: chmod +x gradlew

- name: Gradle build
run: bash ./gradlew assembleDebug
- name: Build library
run: bash ./gradlew library:assembleDebug

test:
name: Run Tests and lint checks
runs-on: macos-latest
timeout-minutes: 60
needs: build
- name: Build sample
run: bash ./gradlew sample:assembleDebug

steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Run kltlint in library
run: ./gradlew library:ktlintCheck

- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}

- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'

- name: Setup Gradle
run: chmod +x gradlew

- name: Run kltlint
run: ./gradlew ktlintCheck
- name: Run kltlint in sample
run: ./gradlew sample:ktlintCheck

- name: Unit tests
run: ./gradlew test --stacktrace

- name: Upload Reports
uses: actions/upload-artifact@v2
with:
name: Test-Reports
path: AppUpdateChecker/build/reports
if: always()
run: ./gradlew test --stacktrace
Loading

0 comments on commit 0d3eb01

Please sign in to comment.