CI: Move to codecov-action@4
authorAlexander Popov <alex.popov@linux.com>
Wed, 17 Apr 2024 16:58:53 +0000 (19:58 +0300)
committerAlexander Popov <alex.popov@linux.com>
Wed, 17 Apr 2024 16:58:53 +0000 (19:58 +0300)
Again, trying to fix the error
```
Codecov: Failed to properly upload: The process '/home/runner/work/_actions/codecov/codecov-action/v3/dist/codecov' failed with exit code 255
```
https://github.com/codecov/codecov-action/issues/598

.github/workflows/engine_unit-test.yml
.github/workflows/functional_test.yml

index 3b49012d36e550b08f2a99b802fb43bb8c30338e..e60b09bafd1c25c66f13bd8aaa3fd7a5a23f68f5 100644 (file)
@@ -38,7 +38,9 @@ jobs:
         coverage xml -i -o coverage_unittest.xml
 
     - name: Handle coverage
-      uses: codecov/codecov-action@v3.1.5
+      uses: codecov/codecov-action@v4
+      env:
+        CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
       with:
         files: ./coverage_unittest.xml
         flags: engine_unit-test
index c94851e25bdedcbf3c4c8c81f2abff0789a891ef..27f2482ce9a662f50ea5fde86daa740a592aaca2 100644 (file)
@@ -61,7 +61,9 @@ jobs:
         coverage xml -i -o coverage.xml
 
     - name: Handle coverage
-      uses: codecov/codecov-action@v3.1.5
+      uses: codecov/codecov-action@v4
+      env:
+        CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
       with:
         files: ./coverage.xml
         flags: functional_test