fix(style): linted code of conduct and contribution page #71
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: "CI: Testing" | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
permissions: | |
contents: read | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
egress-policy: audit | |
- name: Checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Setup Java | |
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0 | |
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@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 | |
with: | |
name: skaha-unittests-coverage | |
path: skaha/build/reports/jacoco/test/jacocoTestReport.xml | |
if-no-files-found: error | |
retention-days: 1 | |
overwrite: true | |
codecov: | |
runs-on: ubuntu-latest | |
needs: tests | |
permissions: | |
id-token: write | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
egress-policy: audit | |
- name: Download coverage artifacts | |
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | |
with: | |
name: skaha-unittests-coverage | |
- name: List Downloaded Artifacts | |
run: | | |
echo "Downloaded artifacts:" | |
ls -lah $GITHUB_WORKSPACE | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: jacocoTestReport.xml | |
flags: skaha-unittests-coverage | |
name: skaha-unittests-coverage | |
fail_ci_if_error: true | |
verbose: true |