diff --git a/.editorconfig b/.editorconfig index fcad1d0..8cbd32e 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,3 +10,6 @@ end_of_line = lf [*.bat] end_of_line = crlf + +[*{yaml,yml}] +indent_size = 2 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..eb76e82 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,26 @@ +name: test + +on: push + +jobs: + instrumentation-test: + name: Instrumentation Test + runs-on: macos-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set up jdk + uses: actions/setup-java@v2 + with: + java-version: "11" + distribution: "adopt" + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Run tests + uses: reactivecircus/android-emulator-runner@v2 + with: + api-level: 29 + script: ./gradlew savedstate-ktx:connectedCheck --stacktrace