Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 10 additions & 42 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,25 @@
name: CI

on:
push:
branches:
- '**'
pull_request:
push:
branches:
- '**'
# on: workflow_dispatch
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
setup:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@ce177499ccf9fd2aded3b0426c97e5434c2e8a73
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Get Latest
uses: actions/setup-node@v4
with:
node-version: 22.x
- uses: actions/checkout@v2
- name: Restore Dependency Cache
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.OS }}-dependency-cache-${{ hashFiles('**/package.json') }}
- name: Get Package Version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
with:
path: core/
- name: set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
verify-android:
runs-on: ubuntu-latest
timeout-minutes: 30
needs:
- setup
steps:
- uses: actions/checkout@v2
- name: create local.properties file for app creds
env:
PORTALS_KEY: ${{ secrets.portals_key }}
run: echo portals_key=\"$PORTALS_KEY\" > ./local.properties
- uses: actions/checkout@v7
- name: set up JDK 17
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'temurin'
- run: npm run verify
working-directory: ./
working-directory: ./
16 changes: 7 additions & 9 deletions .github/workflows/docs-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Deploy docs PR preview
on:
pull_request:
paths:
- '.github/workflows/docs-preview.yml'
- 'IonicPortals/src/main/**'

permissions:
Expand All @@ -12,30 +13,27 @@ permissions:

env:
SLUG: portals-android-api-ref-${{ github.event.number }}-${{ github.run_id }}
DOCS_PATH: portals-android-api-ref

jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 15
environment:
name: preview-${{ github.event.number }}
url: https://${{ env.SLUG }}.ionicpreview.com
url: https://${{ env.SLUG }}.ionicpreview.com/docs/${{ env.DOCS_PATH }}/
steps:
- uses: actions/checkout@v2
- name: create local.properties file for app creds
env:
PORTALS_KEY: ${{ secrets.portals_key }}
run: echo portals_key=\"$PORTALS_KEY\" > ./local.properties
- uses: actions/checkout@v7
- name: set up JDK 17
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
- name: Generate Docs
run: ./gradlew dokkaHtml
- uses: aws-actions/configure-aws-credentials@v1
run: ./gradlew :IonicPortals:dokkaGeneratePublicationHtml
- uses: aws-actions/configure-aws-credentials@v6
with:
role-to-assume: arn:aws:iam::319312831725:role/github-docs
aws-region: us-east-1
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/docs-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,23 @@ jobs:
timeout-minutes: 15
environment:
name: production
url: https://ionic.io/docs/${{ env.SLUG }}
url: https://ionic.io/docs/${{ env.SLUG }}/
steps:
- uses: actions/checkout@v2
- name: create local.properties file for app creds
env:
PORTALS_KEY: ${{ secrets.portals_key }}
run: echo portals_key=\"$PORTALS_KEY\" > ./local.properties
- uses: actions/checkout@v7
- name: set up JDK 17
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
- name: Generate Docs
run: ./gradlew dokkaHtml
- uses: aws-actions/configure-aws-credentials@v1
run: ./gradlew :IonicPortals:dokkaGeneratePublicationHtml
- uses: aws-actions/configure-aws-credentials@v6
with:
role-to-assume: arn:aws:iam::319312831725:role/github-docs
aws-region: us-east-1
- name: Deploy
run: |
aws s3 sync IonicPortals/build/dokka/html/ s3://ionic-docs/production/${{ env.SLUG }}/ --exclude '*.html' --cache-control max-age=31536000 --only-show-errors
aws s3 sync IonicPortals/build/dokka/html/ s3://ionic-docs/production/${{ env.SLUG }}/ --exclude '*' --include '*.html' --cache-control max-age=60 --only-show-errors
aws s3 sync IonicPortals/build/dokka/html/ s3://ionic-docs/production/${{ env.SLUG }}/ --exclude '*' --include '*.html' --cache-control max-age=60 --only-show-errors
10 changes: 5 additions & 5 deletions .github/workflows/publish-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ on:
jobs:
publish-android:
runs-on: ubuntu-latest
permissions: write-all
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v7
- name: set up JDK 17
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'temurin'
Expand All @@ -29,7 +30,6 @@ jobs:
signing.keyId=${{ secrets.ANDROID_SIGNING_KEY_ID }}
signing.password=${{ secrets.ANDROID_SIGNING_PASSWORD }}
signing.key=${{ secrets.ANDROID_SIGNING_KEY }}
portals_key="${{ secrets.portals_key }}"
EOF
echo "local.properties file has been created successfully."
- name: Assemble release and add artifact to GH Release
Expand All @@ -48,4 +48,4 @@ jobs:
ANDROID_SIGNING_PASSWORD: ${{ secrets.ANDROID_SIGNING_PASSWORD }}
ANDROID_SIGNING_KEY: ${{ secrets.ANDROID_SIGNING_KEY }}
ANDROID_SONATYPE_STAGING_PROFILE_ID: ${{ secrets.ANDROID_SONATYPE_STAGING_PROFILE_ID }}
run: ./publish-android.sh
run: ./publish-android.sh
17 changes: 6 additions & 11 deletions .github/workflows/ui-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Run UI Tests
on:
pull_request:
paths:
- './github/workflows/ui-tests.yml'
- '.github/workflows/ui-tests.yml'
- 'IonicPortals/**'
- 'TestApp/**'
- 'TestAppCompose/**'
Expand All @@ -18,15 +18,10 @@ jobs:
runs-on: macos-latest
steps:
- name: checkout
uses: actions/checkout@v3

- name: create local.properties file for app creds
env:
PORTALS_KEY: ${{ secrets.portals_key }}
run: echo portals_key=\"$PORTALS_KEY\" > ./local.properties
uses: actions/checkout@v7

- name: set up JDK 17
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'temurin'
Expand All @@ -35,13 +30,13 @@ jobs:
run: chmod +x ./gradlew

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/actions/setup-gradle@v6

- name: Run build for testing
run: ./gradlew assembleDebug assembleAndroidTest

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
uses: aws-actions/configure-aws-credentials@v6
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: us-west-2
Expand All @@ -56,4 +51,4 @@ jobs:
app_type: ANDROID_APP
test_type: INSTRUMENTATION
test_package_file: ./TestApp/build/outputs/apk/androidTest/debug/TestApp-debug-androidTest.apk
test_package_type: INSTRUMENTATION_TEST_PACKAGE
test_package_type: INSTRUMENTATION_TEST_PACKAGE
1 change: 0 additions & 1 deletion IonicPortals/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ android {
buildTypes {
getByName("release") {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
compileOptions {
Expand Down
Empty file removed IonicPortals/consumer-rules.pro
Empty file.
21 changes: 0 additions & 21 deletions IonicPortals/proguard-rules.pro

This file was deleted.

Loading
Loading