Skip to content

Commit

Permalink
add ci step for testing js
Browse files Browse the repository at this point in the history
  • Loading branch information
jordond committed Sep 27, 2023
1 parent c931dc3 commit b233e91
Show file tree
Hide file tree
Showing 2 changed files with 2,006 additions and 7 deletions.
45 changes: 38 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,22 @@ jobs:
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1

- name: Lint
- name: Binary Compatibility Validation
uses: gradle/gradle-build-action@v2
with:
arguments: lint --scan
arguments: apiCheck --scan

- name: Binary Compatibility Validation
- name: Lint
uses: gradle/gradle-build-action@v2
with:
arguments: apiCheck --scan
arguments: lint --scan

test:
strategy:
matrix:
config: [
{ target: "default", os: "ubuntu-latest", tasks: "test", continueOnError: false },
{ target: "osx", os: "macos-latest", tasks: "test", continueOnError: false },
{ target: "default", os: "ubuntu-latest", tasks: "allTest", continueOnError: false },
{ target: "osx", os: "macos-latest", tasks: "allTest", continueOnError: false },
{ target: "package", os: "ubuntu-latest", tasks: ":demo:composeApp:packageDistributionForCurrentOS", continueOnError: false }
]
runs-on: ${{ matrix.config.os }}
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
with:
arguments: ${{ matrix.config.tasks }} --scan

instrumented:
test-instrumented:
strategy:
matrix:
api-level: [ 24, 29, 31 ]
Expand Down Expand Up @@ -151,3 +151,34 @@ jobs:
emulator-boot-timeout: 12000
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -no-snapshot-save
script: ./gradlew connectedCheck

test-browser:
runs-on: ubuntu-latest
name: Test JS in browser
needs: verify
steps:
- name: Checkout
uses: actions/checkout@v4

- name: setup-java
uses: actions/setup-java@v3
with:
java-version: 17
distribution: adopt

- name: Cache Gradle
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1

- name: Run tests in Chrome
uses: browser-actions/setup-chrome@v1
run: ./gradlew jsTest
Loading

0 comments on commit b233e91

Please sign in to comment.