Skip to content

Commit 259846e

Browse files
committed
add client test ci workflow
1 parent 1f8e183 commit 259846e

File tree

2 files changed

+39
-3
lines changed

2 files changed

+39
-3
lines changed

.github/workflows/ci-client.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI Client Test Workflow
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
spotify_test_client_token:
6+
description: 'Spotify client redirect token (for client tests before release)'
7+
required: true
8+
spotify_test_redirect_uri:
9+
description: 'Spotify redirect uri'
10+
required: true
11+
env:
12+
SPOTIFY_CLIENT_ID: ${{ secrets.SPOTIFY_CLIENT_ID }}
13+
SPOTIFY_CLIENT_SECRET: ${{ secrets.SPOTIFY_CLIENT_SECRET }}
14+
SPOTIFY_TOKEN_STRING: ${{ github.event.inputs.spotify_test_client_token }}
15+
SPOTIFY_REDIRECT_URI: ${{ github.event.inputs.spotify_test_redirect_uri }}
16+
jobs:
17+
verify_client_android_jvm_linux_js:
18+
runs-on: ubuntu-latest
19+
environment: release
20+
steps:
21+
- name: Check out repo
22+
uses: actions/checkout@v2
23+
- name: Install java 11
24+
uses: actions/setup-java@v2
25+
with:
26+
distribution: 'adopt'
27+
java-version: '11'
28+
- name: Install curl
29+
run: sudo apt-get install -y curl libcurl4-openssl-dev
30+
- name: Verify Android
31+
run: ./gradlew testDebugUnitTest
32+
- name: Verify JVM/JS
33+
run: ./gradlew jvmTest
34+
- name: Archive test results
35+
uses: actions/upload-artifact@v2
36+
with:
37+
name: code-coverage-report
38+
path: build/reports
39+
if: always()

.github/workflows/ci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will build a Java project with Gradle
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3-
41
name: CI Test Workflow
52

63
on:

0 commit comments

Comments
 (0)