csgo-matches/.forgejo/workflows/unit-tests.yml
Leonardo Murça 9032c555d1
Some checks failed
Android Unit Tests / tests (push) Failing after 1m13s
ci: fix unit tests job
2025-07-19 21:51:39 -03:00

28 lines
No EOL
755 B
YAML

name: Android Unit Tests
on:
push:
branches:
- main
jobs:
tests:
runs-on: docker
container:
image: ghcr.io/cirruslabs/android-sdk:35
steps:
- name: Checkout code manually
run: |
git clone https://$TOKEN@${GIT_DOMAIN}/${GIT_REPO}.git .
git checkout "$GITHUB_SHA"
env:
TOKEN: ${{ secrets.RELEASE_TOKEN }}
GIT_DOMAIN: git.leomurca.xyz
GIT_REPO: leomurca/csgo-matches
- name: Make Gradle wrapper executable
run: chmod +x ./gradlew
- name: Build and Run Unit Tests
run: ./gradlew assembleDebug testDebugUnitTest \
-PAPI_BASE_URL={{ secrets.API_BASE_URL }}\
-PACCESS_TOKEN="${{ secrets.ACCESS_TOKEN }}"