Skip to content

chore(deps): bump codecov/codecov-action from 4 to 5 #223

chore(deps): bump codecov/codecov-action from 4 to 5

chore(deps): bump codecov/codecov-action from 4 to 5 #223

Workflow file for this run

name: tests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: 8.8
- name: Decode keystore
env:
ENCODED_STRING: ${{ secrets.KEYSTORE_BASE_64 }}
run: |
echo $ENCODED_STRING > keystore-b64.txt
base64 -d keystore-b64.txt > androidApp/keystore.jks
- name: Run unit tests
env:
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEYSTORE_ALIAS: ${{ secrets.KEYSTORE_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
run: ./gradlew testDebugUnitTest
- name: Generate code coverage
run: ./gradlew androidApp:koverXmlReportDebug
- name: Upload coverage
uses: codecov/codecov-action@v5
with:
files: ./androidApp/build/reports/kover/reportDebug.xml
flags: unittests
name: raccoon4lemmy
token: ${{ secrets.CODECOV_TOKEN }}