Skip to content

[CADC-13816] Implement linting and style checks #2

[CADC-13816] Implement linting and style checks

[CADC-13816] Implement linting and style checks #2

Workflow file for this run

name: "CI: Testing"
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'
cache: 'gradle'
- name: Run Tests
run: |
cd skaha
./gradlew clean check
-
name: Upload coverage artifacts
uses: actions/upload-artifact@v4.4.3
with:
name: skaha-unittests-coverage
path: build/reports/jacoco/test/jacocoTestReport.xml
if-no-files-found: error
retention-days: 1
overwrite: true
codecov:
runs-on: ubuntu-latest
needs: tests
steps:
-
name: Download coverage artifacts
uses: actions/download-artifact@v4.1.8
with:
name: skaha-unittests-coverage
path: jacocoTestReport.xml
-
name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: jacocoTestReport.xml
flags: skaha-unittests-coverage
name: skaha-unittests-coverage
fail_ci_if_error: true