Skip to content

Commit a81195e

Browse files
committed
simplify test workflow
1 parent 4d5cb0b commit a81195e

File tree

1 file changed

+1
-59
lines changed

1 file changed

+1
-59
lines changed

.github/workflows/unit-test.yml

Lines changed: 1 addition & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
os: [ ubuntu-latest, windows-latest, macos-13 ] # pin macos to latest x64 image
21+
os: [ ubuntu-latest ] # pin macos to latest x64 image
2222
steps:
2323
- name: Checkout code changes
2424
uses: actions/checkout@v4
@@ -28,61 +28,3 @@ jobs:
2828
with:
2929
# bump: ffmpeg-ci /ffmpeg-version: '([\d.]+)'/ docker:mwader/static-ffmpeg|~7.0
3030
ffmpeg-version: '7.0.2'
31-
32-
- name: Setup Java
33-
uses: actions/setup-java@v4
34-
with:
35-
distribution: zulu
36-
java-version: 24
37-
38-
- name: Setup project and upload dependency graph
39-
uses: gradle/actions/setup-gradle@v4
40-
with:
41-
dependency-graph: generate-and-submit
42-
build-scan-publish: true
43-
build-scan-terms-of-use-url: 'https://gradle.com/help/legal-terms-of-use'
44-
build-scan-terms-of-use-agree: 'yes'
45-
46-
- name: Execute tests
47-
run: ./gradlew test
48-
49-
- name: Upload coverage report
50-
uses: actions/upload-artifact@v4
51-
if: runner.os == 'Linux'
52-
with:
53-
name: coverage_report
54-
path: .qodana/code-coverage/report.xml
55-
retention-days: 1
56-
if-no-files-found: error
57-
58-
qodana:
59-
name: Perform Qodana analysis
60-
needs: tests
61-
runs-on: ubuntu-latest
62-
steps:
63-
- name: Checkout code changes
64-
uses: actions/checkout@v4
65-
with:
66-
ref: ${{ github.event.pull_request.head.sha }}
67-
fetch-depth: 0
68-
69-
- name: Download coverage report
70-
uses: actions/download-artifact@v4
71-
with:
72-
name: coverage_report
73-
path: .qodana/code-coverage
74-
75-
- name: Execute analysis
76-
uses: JetBrains/qodana-action@main
77-
env:
78-
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
79-
with:
80-
args: '--baseline,qodana.baseline.json'
81-
use-caches: false
82-
post-pr-comment: false
83-
pr-mode: false
84-
85-
- name: Upload results to GitHub
86-
uses: github/codeql-action/upload-sarif@v3
87-
with:
88-
sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json

0 commit comments

Comments
 (0)