Update dependency org.jetbrains.kotlinx:kotlinx-serialization-json to v1.8.0 #175
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
jobs: | |
unit-tests: | |
name: Run all unit tests (with coverage) | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: '11' | |
- uses: gradle/gradle-build-action@v2 | |
- name: Create pip requirements | |
run: | | |
echo "matrix-synapse" > requirements.txt | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
cache: 'pip' | |
- name: Start synapse server | |
run: | | |
pip install -r requirements.txt | |
curl -sL https://gist.githubusercontent.com/ouchadam/e3ad09ec382bd91a66d88ab575ea7c31/raw/run.sh \ | |
| bash -s -- --no-rate-limit | |
- name: Run all unit tests | |
run: ./gradlew allCodeCoverageReport | |
- uses: codecov/codecov-action@v3 | |
with: | |
verbose: true | |
files: ./build/reports/jacoco/allCodeCoverageReport/allCodeCoverageReport.xml |