Skip to content

added installation snippet #29

added installation snippet

added installation snippet #29

Workflow file for this run

name: Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test-and-upstream:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# with:
# token: ${{ secrets.STANDARDS_TOKEN }}
# - name: Set up Python 3.10
# uses: actions/setup-python@v4
# with:
# python-version: '3.10'
# - name: Install dependencies
# run: pip install requests
- name: Set up JDK 18
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Echo secrets
run: |
echo "$PROPERTIES_FILE" >> ./gradle.properties
cat ./gradle.properties
echo "$GPG_SECRET_FILE" >> ./secret-key.ascii
cat ./secret-key.ascii
shell: bash
env:
PROPERTIES_FILE: ${{secrets.PROPERTIES_FILE}}
GPG_SECRET_FILE: ${{secrets.GPG_SECRET_FILE}}
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Test and collect coverage
run: |
./gradlew build
./gradlew test
./gradlew koverXmlReport
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4-beta
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
files: ./build/reports/kover/report.xml
# - name: Check coverage
# run: python request.py
# env:
# API_KEY: ${{ secrets.API_KEY }}
# CORRECT_COVERAGE: ${{ secrets.CORRECT_COVERAGE }}
# - name: Upstream to Standards
# env:
# GH_TOKEN: ${{ secrets.STANDARDS_TOKEN }}
# COVERAGE_SOURCE_FILE: ${{ secrets.COVERAGE_SOURCE_FILE }}
# if: ${{ github.event_name == 'push'}}
# run: |
# wget --header "Authorization: token ${GH_TOKEN}" \
# --header "Accept: application/vnd.github.v3.raw" \
# https://api.github.com/repos/codecov/standards/contents/upstream.sh
# bash upstream.sh