ReaderForSelfoss-multiplatform/.gitea/workflows/on_push_testing.yml
aminecmi 38893f2a0f
Some checks failed
Check master code / checkout (push) Failing after 3m28s
test: test
2024-12-23 12:04:15 +01:00

39 lines
1.3 KiB
YAML

name: Check master code
on:
push:
branches:
- testing
jobs:
checkout:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch tags
run: git fetch --tags -p
- name: Init compose
uses: KengoTODA/actions-setup-docker-compose@v1
with:
version: "2.23.3"
- name: run selfoss
run: |
docker compose -f .gitea/workflows/assets/docker-compose.yml up -d
response=$(curl 172.17.0.1:8888/api/about)
echo $response
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Configure gradle...
run: mkdir -p ~/.gradle && echo "org.gradle.daemon=false\nignoreGitVersion=true\nsystemProp.org.gradle.internal.http.connectionTimeout=180000\nsystemProp.org.gradle.internal.http.socketTimeout=180000" >> ~/.gradle/gradle.properties
- name: Ui tests
run: ./gradlew cAT
- name: Clean
if: success() || failure()
run: |
docker compose -f .gitea/workflows/assets/docker-compose.yml stop