Skip to content

Commit

Permalink
action cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
laves committed Aug 12, 2022
1 parent 62b702b commit ca291cc
Show file tree
Hide file tree
Showing 21 changed files with 77 additions and 77 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/LeopardDemo/**'
- '!demo/android/LeopardDemo/README.md'
- '.github/workflows/android-appcenter.yml'
pull_request:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'demo/android/LeopardDemo/**'
- '!demo/android/LeopardDemo/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/LeopardDemo

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/LeopardAppTest/Podfile.lock'
- '.github/workflows/ios-appcenter.yml'
pull_request:
branches: [ master, v1.1 ]
paths:
branches: [ master ]
paths:
- 'binding/ios/LeopardAppTest/Podfile.lock'
- '.github/workflows/ios-appcenter.yml'

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

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

- name: XCode Build
run: xcrun xcodebuild build-for-testing
-configuration Debug
-workspace LeopardAppTest.xcworkspace
-sdk iphoneos
run: xcrun xcodebuild build-for-testing
-configuration Debug
-workspace LeopardAppTest.xcworkspace
-sdk iphoneos
-scheme LeopardAppTest
-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/Leopard-iOS"
--app "Picovoice/Leopard-iOS"
--devices "Picovoice/ios-min-max"
--test-series "leopard-ios"
--locale "en_US"
--test-series "leopard-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/LeopardAppTest

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 LeopardAppTest.xcworkspace
-sdk iphoneos
run: xcrun xcodebuild build-for-testing
-configuration Debug
-workspace LeopardAppTest.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/Leopard-iOS"
--app "Picovoice/Leopard-iOS"
--devices "Picovoice/${{ matrix.device }}"
--test-series "leopard-ios"
--locale "en_US"
--test-series "leopard-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/**/LeopardPerformanceTest.java'
- 'lib/common/**'
- 'lib/java/**'
- '.github/workflows/java-perf.yml'
pull_request:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'binding/java/**/LeopardPerformanceTest.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/common/**'
- 'lib/java/**'
- '.github/workflows/java.yml'
pull_request:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'binding/java/**'
- '!binding/java/README.md'
Expand Down
4 changes: 2 additions & 2 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/test/perf.test.ts'
- 'lib/common/**'
- 'lib/node/**'
- '.github/workflows/nodejs-perf.yml'

pull_request:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'binding/nodejs/test/perf.test.ts'
- '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,7 +3,7 @@ name: Node.js
on:
workflow_dispatch:
push:
branches: [ master, v1.1 ]
branches: [ master ]
paths:
- 'binding/nodejs/**'
- '!binding/nodejs/README.md'
Expand All @@ -12,7 +12,7 @@ on:
- '.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 ca291cc

Please sign in to comment.