Skip to content

fix(test): Fix tests #81

fix(test): Fix tests

fix(test): Fix tests #81

Workflow file for this run

name: Tests
on:
workflow_dispatch:
merge_group:
push:
branches: [ master ]
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
env:
CI_GRADLE_ARG_PROPERTIES: --stacktrace --no-daemon
permissions: {}
jobs:
build:
name: Tests
runs-on: ubuntu-latest
concurrency:
group: ${{ github.ref == 'refs/heads/master' && format('test-master-{0}', github.sha) || format('test-{0}', github.ref) }}
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
# See: https://github.com/actions/checkout/issues/881
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
persist-credentials: false
- name: Configure JDK
uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e # v5.1.0
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '21'
- name: Configure Gradle
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
- name: Run all tests
# -Pandroid.enableBuildConfigAsBytecode=false due to https://issuetracker.google.com/issues/363031540
run: ./gradlew kotest -Pandroid.enableBuildConfigAsBytecode=false $CI_GRADLE_ARG_PROPERTIES