File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -53,11 +53,13 @@ jobs:
5353 key : cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-${{ github.run_id }}
5454
5555 - name : SonarQube Scan
56+ if : matrix.os == 'ubuntu-latest'
5657 uses : SonarSource/sonarqube-scan-action@8c71dc039c2dd71d3821e89a2b58ecc7fee6ced9 # v5.3.0
5758 env :
5859 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
5960
6061 - name : Upload coverage reports to Codecov
62+ if : matrix.os == 'ubuntu-latest'
6163 uses : codecov/codecov-action@fdcc8476540edceab3de004e990f80d881c6cc00 # v5.5.0
6264 with :
6365 fail_ci_if_error : true
Original file line number Diff line number Diff line change @@ -212,15 +212,15 @@ mod tests {
212212
213213 #[ test]
214214 #[ ignore = "docker" ]
215- #[ cfg( not ( windows ) ) ]
215+ #[ cfg( target_os = "linux" ) ]
216216 fn test_docker_git_init ( ) {
217217 let ( dir, _docker_git) = setup_initialized_repo ( ) ;
218218 assert ! ( dir. path( ) . join( ".git" ) . exists( ) ) ;
219219 }
220220
221221 #[ test]
222222 #[ ignore = "docker" ]
223- #[ cfg( not ( windows ) ) ]
223+ #[ cfg( target_os = "linux" ) ]
224224 fn test_docker_git_commit ( ) {
225225 let ( dir, docker_git) = setup_initialized_repo ( ) ;
226226 dir. create_file ( "test.txt" , "test content" ) . unwrap ( ) ;
@@ -231,7 +231,7 @@ mod tests {
231231
232232 #[ test]
233233 #[ ignore = "docker" ]
234- #[ cfg( not ( windows ) ) ]
234+ #[ cfg( target_os = "linux" ) ]
235235 fn test_docker_git_tag ( ) {
236236 let ( dir, docker_git) = setup_repo_with_commit ( ) ;
237237 docker_git
@@ -241,7 +241,7 @@ mod tests {
241241
242242 #[ test]
243243 #[ ignore = "docker" ]
244- #[ cfg( not ( windows ) ) ]
244+ #[ cfg( target_os = "linux" ) ]
245245 fn test_docker_git_integration ( ) {
246246 let ( dir, docker_git) = setup_repo_with_commit ( ) ;
247247 docker_git
You can’t perform that action at this time.
0 commit comments