Skip to content

Commit

Permalink
actions cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
laves committed Aug 12, 2022
1 parent 7662e8c commit 6e8566f
Show file tree
Hide file tree
Showing 21 changed files with 78 additions and 78 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/android-appcenter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ name: Android AppCenter Tests
on:
workflow_dispatch:
push:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'demo/android/CheetahDemo/**'
- '!demo/android/CheetahDemo/README.md'
- '.github/workflows/android-appcenter.yml'
pull_request:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'demo/android/CheetahDemo/**'
- '!demo/android/CheetahDemo/README.md'
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/android-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ name: Android Performance
on:
workflow_dispatch:
push:
branches: [ master, v1.1 ]
paths:
branches: [ master ]
paths:
- 'lib/android/**'
- 'lib/common/**'
- '.github/workflows/android-perf.yml'
pull_request:
branches: [ master, v1.1 ]
paths:
branches: [ master ]
paths:
- 'lib/android/**'
- 'lib/common/**'
- '.github/workflows/android-perf.yml'

defaults:
run:
working-directory: demo/android/CheetahDemo

jobs:
build:
name: Run Android Speed Tests on AppCenter
Expand All @@ -37,22 +37,22 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Setup Node.js environment
uses: actions/[email protected]

- name: Install AppCenter CLI
run: npm install -g appcenter-cli

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

- name: Copy test_resources
run: ./copy_test_resources.sh

- name: Inject AccessKey
run: echo pvTestingAccessKey="${{secrets.PV_VALID_ACCESS_KEY}}" >> local.properties

Expand All @@ -64,16 +64,16 @@ jobs:

- name: Inject Proc Performance Threshold
run: echo procPerformanceThresholdSec="${{ matrix.procPerformanceThresholdSec }}" >> local.properties

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build app
run: ./gradlew assembleDebug

- name: Build androidTest
run: ./gradlew assembleAndroidTest

- name: Run tests on AppCenter
run: appcenter test run espresso
--token ${{secrets.APPCENTERAPITOKEN}}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dotnet-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ name: .NET Demos
on:
workflow_dispatch:
push:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'demo/dotnet/**'
- '!demo/dotnet/README.md'
- '.github/workflows/dotnet-demos.yml'
pull_request:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'demo/dotnet/**'
- '!demo/dotnet/README.md'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: .NET
on:
workflow_dispatch:
push:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'binding/dotnet/**'
- '!binding/dotnet/README.md'
Expand All @@ -15,7 +15,7 @@ on:
- 'lib/windows/**'
- '.github/workflows/dotnet.yml'
pull_request:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'binding/dotnet/**'
- '!binding/dotnet/README.md'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/flutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: Flutter
on:
workflow_dispatch:
push:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'demo/flutter/pubspec.yaml'
- '.github/workflows/flutter.yml'
pull_request:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'demo/flutter/pubspec.yaml'
- '.github/workflows/flutter.yml'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/go-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ name: Go Demos
on:
workflow_dispatch:
push:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'demo/go/**'
- '!demo/go/README.md'
- '.github/workflows/go-demos.yml'
pull_request:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'demo/go/**'
- '!demo/go/README.md'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Go
on:
workflow_dispatch:
push:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'binding/go/**'
- '!binding/go/README.md'
Expand All @@ -15,7 +15,7 @@ on:
- 'lib/windows/**'
- '.github/workflows/go.yml'
pull_request:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'binding/go/**'
- '!binding/go/README.md'
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/ios-appcenter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ name: iOS AppCenter Tests
on:
workflow_dispatch:
push:
branches: [ master, v1.1 ]
paths:
branches: [ master ]
paths:
- 'binding/ios/CheetahAppTest/Podfile.lock'
- '.github/workflows/ios-appcenter.yml'
pull_request:
branches: [ master, v1.1 ]
paths:
branches: [ master ]
paths:
- 'binding/ios/CheetahAppTest/Podfile.lock'
- '.github/workflows/ios-appcenter.yml'

defaults:
run:
working-directory: binding/ios/CheetahAppTest

jobs:
build:
name: Run iOS Tests on AppCenter
Expand Down Expand Up @@ -46,19 +46,19 @@ jobs:
CheetahAppTestUITests/CheetahAppTestUITests.swift

- name: XCode Build
run: xcrun xcodebuild build-for-testing
-configuration Debug
-workspace CheetahAppTest.xcworkspace
-sdk iphoneos
run: xcrun xcodebuild build-for-testing
-configuration Debug
-workspace CheetahAppTest.xcworkspace
-sdk iphoneos
-scheme CheetahAppTest
-derivedDataPath ddp
-derivedDataPath ddp
CODE_SIGNING_ALLOWED=NO

- name: Run Tests on AppCenter
run: appcenter test run xcuitest
run: appcenter test run xcuitest
--token ${{secrets.APPCENTERAPITOKEN}}
--app "Picovoice/Cheetah-iOS"
--app "Picovoice/Cheetah-iOS"
--devices "Picovoice/ios-min-max"
--test-series "cheetah-ios"
--locale "en_US"
--test-series "cheetah-ios"
--locale "en_US"
--build-dir ddp/Build/Products/Debug-iphoneos
30 changes: 15 additions & 15 deletions .github/workflows/ios-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ name: iOS Performance
on:
workflow_dispatch:
push:
branches: [ master, v1.1 ]
paths:
branches: [ master ]
paths:
- 'lib/ios/**'
- 'lib/common/**'
- '.github/workflows/ios-perf.yml'
pull_request:
branches: [ master, v1.1 ]
paths:
branches: [ master ]
paths:
- 'lib/ios/**'
- 'lib/common/**'
- '.github/workflows/ios-perf.yml'

defaults:
run:
working-directory: binding/ios/CheetahAppTest

jobs:
build:
name: Run iOS Tests on AppCenter
Expand Down Expand Up @@ -71,19 +71,19 @@ jobs:
PerformanceTest/PerformanceTest.swift

- name: XCode Build
run: xcrun xcodebuild build-for-testing
-configuration Debug
-workspace CheetahAppTest.xcworkspace
-sdk iphoneos
run: xcrun xcodebuild build-for-testing
-configuration Debug
-workspace CheetahAppTest.xcworkspace
-sdk iphoneos
-scheme PerformanceTest
-derivedDataPath ddp
-derivedDataPath ddp
CODE_SIGNING_ALLOWED=NO

- name: Run Tests on AppCenter
run: appcenter test run xcuitest
run: appcenter test run xcuitest
--token ${{secrets.APPCENTERAPITOKEN}}
--app "Picovoice/Cheetah-iOS"
--app "Picovoice/Cheetah-iOS"
--devices "Picovoice/${{ matrix.device }}"
--test-series "cheetah-ios"
--locale "en_US"
--test-series "cheetah-ios"
--locale "en_US"
--build-dir ddp/Build/Products/Debug-iphoneos
4 changes: 2 additions & 2 deletions .github/workflows/java-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ name: Java Demos
on:
workflow_dispatch:
push:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'demo/java/**'
- '!demo/java/README.md'
- '.github/workflows/java-demos.yml'
pull_request:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'demo/java/**'
- '!demo/java/README.md'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/java-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ name: Java Performance
on:
workflow_dispatch:
push:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'binding/java/**/CheetahPerformanceTest.java'
- 'lib/common/**'
- 'lib/java/**'
- '.github/workflows/java-perf.yml'
pull_request:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'binding/java/**/CheetahPerformanceTest.java'
- 'lib/common/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ name: Java
on:
workflow_dispatch:
push:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'binding/java/**'
- '!binding/java/README.md'
- 'lib/commom/**'
- 'lib/java/**'
- '.github/workflows/java.yml'
pull_request:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'binding/java/**'
- '!binding/java/README.md'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/nodejs-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ name: Node.js Demos
on:
workflow_dispatch:
push:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'demo/nodejs/**'
- '!demo/nodejs/README.md'
- 'lib/node/**'
- '.github/workflows/nodejs-demos.yml'

pull_request:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'demo/nodejs/**'
- '!demo/nodejs/README.md'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nodejs-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ name: Node.js Performance
on:
workflow_dispatch:
push:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'binding/nodejs/perf.test.js'
- 'lib/common/**'
- 'lib/node/**'
- '.github/workflows/nodejs-perf.yml'

pull_request:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'binding/nodejs/perf.test.js'
- 'lib/common/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ name: Node.js
on:
workflow_dispatch:
push:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'binding/nodejs/**'
- '!binding/nodejs/README.md'
- 'lib/node/**'
- '.github/workflows/nodejs.yml'

pull_request:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'binding/nodejs/**'
- '!binding/nodejs/README.md'
Expand Down
Loading

0 comments on commit 6e8566f

Please sign in to comment.