-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
235 additions
and
622 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,114 @@ | ||
name: Pull Request CI | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
concurrency: | ||
group: ${{ github.head_ref }}${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
JAVA_VERSION: 11 | ||
NODEJS_VERSION: 16.17.0 | ||
ATALA_GITHUB_ACTOR: ${{ secrets.ATALA_GITHUB_ACTOR }} | ||
ATALA_GITHUB_TOKEN: ${{ secrets.ATALA_GITHUB_TOKEN }} | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
|
||
lint: | ||
name: Lint changes | ||
runs-on: ubuntu-latest | ||
env: | ||
APPLY_FIXES: all | ||
APPLY_FIXES_EVENT: pull_request | ||
APPLY_FIXES_MODE: commit | ||
VALIDATE_ALL_CODEBASE: ${{ github.ref_name == 'main' }} | ||
DISABLE: COPYPASTE,SPELL | ||
GITHUB_TOKEN: ${{ secrets.ATALA_GITHUB_TOKEN }} | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.ATALA_GITHUB_TOKEN }} | ||
fetch-depth: 0 | ||
- name: Mega-Linter | ||
id: ml | ||
uses: megalinter/megalinter@v6 | ||
- name: Archive production artifacts | ||
if: success() || failure() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Mega-Linter reports | ||
path: | | ||
report | ||
mega-linter.log | ||
build: | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
os-type: linux | ||
# - os: windows-latest | ||
# os-type: windows | ||
fail-fast: false | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout the repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Validate Gradle Wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
|
||
- name: Cache gradle | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
~/.konan | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Install Java ${{ env.JAVA_VERSION }} | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ env.JAVA_VERSION }} | ||
distribution: 'zulu' | ||
|
||
- name: Install NodeJS ${{ env.NODEJS_VERSION }} | ||
if: matrix.os-type == 'linux' | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ env.NODEJS_VERSION }} | ||
|
||
# TODO: This is disable for now it needs to be checked a linting error | ||
# - name: Test Kotlin code is properly formatted | ||
# run: ./gradlew ktlintCheck | ||
|
||
# - name: Build for iOS, macOS, tvOS, watchOS | ||
# if: matrix.os-type == 'macos' | ||
# run: | | ||
# ./gradlew clean build iosX64Test --stacktrace | ||
# # removed watchosX64Test as GitHub action gets Invalid device: Apple Watch Series 5 - 44mm | ||
# # no longer supporting them => macosX64Test tvosX64Test | ||
# # TODO: This is not needed now | ||
|
||
- name: Build for JS, Android, JVM | ||
if: matrix.os-type == 'linux' | ||
run: | | ||
./gradlew build allTests --stacktrace | ||
- name: Upload the build report | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: "**/build/reports/" | ||
name: report-${{ matrix.os-type }} |
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
authenticate-sdk/src/androidMain/kotlin/io/iohk/atala/prism/authenticatesdk/authenticate.kt
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...nticate-sdk/src/androidMain/kotlin/io/iohk/atala/prism/authenticatesdk/createChallenge.kt
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
authenticate-sdk/src/commonMain/kotlin/io.iohk.atala.prism.authenticatesdk/authenticate.kt
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...enticate-sdk/src/commonMain/kotlin/io.iohk.atala.prism.authenticatesdk/createChallenge.kt
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
authenticate-sdk/src/jsMain/kotlin/io.iohk.atala.prism.authenticatesdk/authenticate.kt
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
authenticate-sdk/src/jsMain/kotlin/io.iohk.atala.prism.authenticatesdk/createChallenge.kt
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
authenticate-sdk/src/jvmMain/kotlin/io/iohk/atala/prism/authenticatesdk/authenticate.kt
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
authenticate-sdk/src/jvmMain/kotlin/io/iohk/atala/prism/authenticatesdk/createChallenge.kt
This file was deleted.
Oops, something went wrong.
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.