Skip to content

Commit

Permalink
Delete documentation as it's now stored in documentation brnach. Setu…
Browse files Browse the repository at this point in the history
…p github workflow actions
  • Loading branch information
KovalevAndrey committed Jul 17, 2024
1 parent a627022 commit 6024bc8
Show file tree
Hide file tree
Showing 36 changed files with 226 additions and 2,423 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/build.yml → .github/workflows/build_1.x.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Build
name: Build_1.x

on:
push:
branches:
- 1.x
- 2.x
pull_request:
workflow_dispatch:

Expand Down Expand Up @@ -130,14 +129,3 @@ jobs:
path: |
**/build/reports
logcat.out
check-documentation:
name: Check documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- run: pip install mkdocs-material
- run: mkdocs build --strict
161 changes: 161 additions & 0 deletions .github/workflows/build_2.x.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
name: Build

on:
push:
branches:
- 2.x
pull_request:
workflow_dispatch:

env:
MAIN_BRANCH: ${{ github.ref == 'refs/heads/1.x' || github.ref == 'refs/heads/2.x' }}

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- uses: gradle/wrapper-validation-action@v2
- uses: gradle/actions/setup-gradle@v3
with:
cache-read-only: ${{ env.MAIN_BRANCH != 'true' }}
- name: Build
run: >
./gradlew
buildNonMkdocs
projectHealth
mergeLintSarif
mergeDetektSarif
:plugins:buildPlugins
--continue
- name: Deploy snapshot
if: env.MAIN_BRANCH == 'true' && github.repository == 'bumble-tech/appyx'
env:
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
run: >
./gradlew
publishAllPublicationsToSonatypeSnapshotRepository
-Psnapshot=true
--no-parallel
-Psigning.password=${{ secrets.SIGNING_PASSWORD }}
-Psonatype.username=${{ secrets.SONATYPE_USERNAME }}
-Psonatype.password=${{ secrets.SONATYPE_PASSWORD }}
- uses: github/codeql-action/upload-sarif@v3
if: success() || failure()
with:
sarif_file: build/lint-merged.sarif
category: lint
- uses: github/codeql-action/upload-sarif@v3
if: success() || failure()
with:
sarif_file: build/detekt-merged.sarif
category: detekt
- name: Upload failure artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: reports
path: |
**/build/reports/
!**/build/reports/dependency-analysis/
publication-verification:
name: Publication verification
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- uses: gradle/wrapper-validation-action@v2
- uses: gradle/actions/setup-gradle@v3
with:
cache-read-only: ${{ env.MAIN_BRANCH != 'true' }}
- name: Check publication setup
run: >
./gradlew
publishAllPublicationsToOSSRHRepository
publishAllPublicationsToSonatypeSnapshotRepository
--dry-run
--no-parallel
- name: Publish locally
run: ./gradlew publishToMavenLocal -Psigning.required=false --no-parallel --continue

instrumentation-tests:
name: Instrumentation tests
runs-on: macOS-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- uses: gradle/wrapper-validation-action@v2
- uses: gradle/actions/setup-gradle@v3
with:
cache-read-only: ${{ env.MAIN_BRANCH != 'true' }}
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Package Debug Android Test
# Flags from https://github.com/android/nowinandroid/blob/main/.github/workflows/Build.yaml
run: ./gradlew packageDebugAndroidTest
- name: Instrumentation tests
# Flags from https://github.com/android/nowinandroid/blob/main/.github/workflows/Build.yaml
run: >
adb logcat > logcat.out &
./gradlew cleanManagedDevices --unused-only &&
./gradlew uiTestsDeviceDebugAndroidTest
-Dorg.gradle.workers.max=1
-Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect"
-Pandroid.experimental.testOptions.managedDevices.emulator.showKernelLogging=true
-Dorg.gradle.jvmargs=-Xmx2048m
- name: Upload failed instrumentation artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: instrumentation-failures
path: |
**/build/reports
logcat.out
screenshot-tests:
name: Screenshot tests
runs-on: macOS-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- uses: gradle/wrapper-validation-action@v2
- uses: gradle/actions/setup-gradle@v3
with:
cache-read-only: ${{ env.MAIN_BRANCH != 'true' }}
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Screenshot tests
# Flags from https://github.com/android/nowinandroid/blob/main/.github/workflows/Build.yaml
run: >
adb logcat > logcat.out &
./gradlew cleanManagedDevices --unused-only &&
./gradlew screenshotTestsCompareBaseline
-Dorg.gradle.workers.max=1
-Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect"
-Pandroid.experimental.testOptions.managedDevices.emulator.showKernelLogging=true
- name: Upload failed screenshot artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: screenshot-failures
path: |
**/build/reports
**/build/outputs/managed_device_android_test_additional_output
logcat.out
33 changes: 33 additions & 0 deletions .github/workflows/check_documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Check Documentation on Branch

on:
pull_request:
branches:
- documentation
types: [opened, synchronize, reopened]

jobs:
check-documentation:
name: Check documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- uses: gradle/wrapper-validation-action@v2
- uses: gradle/actions/setup-gradle@v3
with:
cache-read-only: ${{ env.MAIN_BRANCH != 'true' }}
- name: Generate distributions
run: ./gradlew wasmJsBrowserDistributionMkdocs --continue
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- run: pip install mkdocs-material
- run: pip install mkdocs-macros-plugin
- run: pip install mkdocs-redirects
- run: pip install mkdocs-include-markdown-plugin
- run: pip install pillow cairosvg
- run: mkdocs build --strict
31 changes: 31 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy mkdocs to GitHub Pages

on:
push:
branches:
- documentation
workflow_dispatch:

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- uses: gradle/wrapper-validation-action@v2
- uses: gradle/actions/setup-gradle@v3
with:
cache-read-only: ${{ env.MAIN_BRANCH != 'true' }}
- run: pip install mkdocs-material
- run: pip install mkdocs-macros-plugin
- run: pip install mkdocs-redirects
- run: pip install mkdocs-include-markdown-plugin
- run: pip install pillow cairosvg
- run: mkdocs gh-deploy --force
72 changes: 0 additions & 72 deletions documentation/apps/childaware.md

This file was deleted.

49 changes: 0 additions & 49 deletions documentation/apps/configuration.md

This file was deleted.

Loading

0 comments on commit 6024bc8

Please sign in to comment.