-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1334 from Adyen/develop
Release 5.0.0-beta01
- Loading branch information
Showing
323 changed files
with
6,705 additions
and
1,821 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Assemble | ||
|
||
on: | ||
workflow_call | ||
|
||
jobs: | ||
assemble-debug: | ||
name: Assemble debug | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 17 | ||
cache: 'gradle' | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Run assembleDebug | ||
run: ./gradlew assDeb --no-daemon | ||
|
||
- name: Cache build output | ||
uses: actions/cache/save@v3 | ||
with: | ||
path: /home/runner/work/adyen-android/adyen-android | ||
key: cache-${{ github.run_id }}-${{ github.run_attempt }} |
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 |
---|---|---|
@@ -1,34 +1,24 @@ | ||
name: Check PR | ||
|
||
# Every PR should be checked for static analysis | ||
on: | ||
pull_request: | ||
branches-ignore: | ||
- 'main' | ||
types: [ opened, synchronize, reopened ] | ||
|
||
jobs: | ||
gradle-check: | ||
# https://github.com/actions/virtual-environments/ | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
# https://github.com/marketplace/actions/checkout | ||
- uses: actions/checkout@v3 | ||
|
||
# Setup Java 17 | ||
# https://github.com/marketplace/actions/setup-java-jdk | ||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 17 | ||
cache: 'gradle' | ||
concurrency: | ||
group: ${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
# Run gradlew check | ||
- name: Gradle check | ||
run: ./gradlew check --no-daemon | ||
jobs: | ||
code_analysis: | ||
name: Code analysis | ||
uses: ./.github/workflows/code_analysis.yml | ||
assemble: | ||
name: Assemble | ||
uses: ./.github/workflows/assemble.yml | ||
needs: code_analysis | ||
test: | ||
name: Test | ||
uses: ./.github/workflows/run_tests.yml | ||
needs: assemble |
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,45 @@ | ||
name: Perform code analysis | ||
|
||
on: | ||
workflow_call | ||
|
||
jobs: | ||
detekt: | ||
name: Run detekt | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 17 | ||
cache: 'gradle' | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Run detekt | ||
run: ./gradlew detekt --no-daemon | ||
|
||
ktlint: | ||
name: Run ktlint | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 17 | ||
cache: 'gradle' | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Run ktlint | ||
run: ./gradlew ktlint --no-daemon |
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 |
---|---|---|
|
@@ -12,11 +12,27 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
# https://github.com/marketplace/actions/checkout | ||
- uses: actions/checkout@v3 | ||
|
||
# Setup Java 17 | ||
# https://github.com/marketplace/actions/setup-java-jdk | ||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 17 | ||
cache: 'gradle' | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
# Generate kdocs | ||
- name: Generate Dokka HTML documentation | ||
run: ./gradlew dokkaHtmlMultiModule --no-daemon | ||
|
||
# Deploy to GitHub Pages | ||
- name: Deploy GitHub Pages | ||
uses: JamesIves/[email protected] | ||
with: | ||
|
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,55 @@ | ||
name: Test | ||
|
||
on: | ||
workflow_call | ||
|
||
jobs: | ||
unit-test: | ||
name: Run unit tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 17 | ||
cache: 'gradle' | ||
|
||
- uses: actions/cache/restore@v3 | ||
with: | ||
path: /home/runner/work/adyen-android/adyen-android | ||
key: cache-${{ github.run_id }}-${{ github.run_attempt }} | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Run testDebugUnitTest | ||
run: ./gradlew testDebugUnitTest --no-daemon | ||
|
||
lint: | ||
name: Run lint | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 17 | ||
cache: 'gradle' | ||
|
||
- uses: actions/cache/restore@v3 | ||
with: | ||
path: /home/runner/work/adyen-android/adyen-android | ||
key: cache-${{ github.run_id }}-${{ github.run_attempt }} | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Run lintDebug | ||
run: ./gradlew lintDebug --no-daemon |
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 |
---|---|---|
@@ -1,45 +1,35 @@ | ||
name: Update verification metadata | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'renovate/**' | ||
paths: | ||
- 'dependencies.gradle' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
gradle-update-verification-metadata: | ||
# https://github.com/actions/virtual-environments/ | ||
update-verification-metadata: | ||
name: Update verification metadata | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
# https://github.com/marketplace/actions/checkout | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
# Setup Java 17 | ||
# https://github.com/marketplace/actions/setup-java-jdk | ||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 17 | ||
cache: 'gradle' | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
# Run gradlew check | ||
|
||
- name: Gradle update verification metadata | ||
run: ./gradlew --write-verification-metadata sha256 build --no-daemon | ||
|
||
- name: Commit | ||
run: | | ||
git config --local user.email 'action@github.com' | ||
git config --local user.name 'GitHub Action' | ||
git config --global user.name "${{ github.actor }}" | ||
git config --global user.email "${{ github.actor }}@users.noreply.github.com" | ||
git add . | ||
git commit -am 'Update verification metadata' | ||
- name: Push | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: ${{ github.ref }} | ||
git diff-index --quiet HEAD || git commit -am 'Update verification metadata' | ||
git push |
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
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
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
Oops, something went wrong.