mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-23 07:42:13 -05:00
fix codacy and remove cache as its prone to fail (#2503)
This commit is contained in:
parent
9c964e6183
commit
5c109b745e
1 changed files with 2 additions and 4 deletions
6
.github/workflows/deploy-Production.yml
vendored
6
.github/workflows/deploy-Production.yml
vendored
|
@ -75,8 +75,6 @@ jobs:
|
||||||
if: ${{ github.repository == 'github/super-linter' && github.ref != 'refs/heads/main' }}
|
if: ${{ github.repository == 'github/super-linter' && github.ref != 'refs/heads/main' }}
|
||||||
uses: docker/build-push-action@v2.7.0
|
uses: docker/build-push-action@v2.7.0
|
||||||
with:
|
with:
|
||||||
cache-from: type=gha
|
|
||||||
cache-to: type=gha,mode=max
|
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
build-args: |
|
build-args: |
|
||||||
|
@ -154,6 +152,8 @@ jobs:
|
||||||
- name: Upload the code coverage report
|
- name: Upload the code coverage report
|
||||||
if: ${{ github.repository == 'github/super-linter' && github.ref != 'refs/heads/main' }}
|
if: ${{ github.repository == 'github/super-linter' && github.ref != 'refs/heads/main' }}
|
||||||
uses: codacy/codacy-coverage-reporter-action@v1.1
|
uses: codacy/codacy-coverage-reporter-action@v1.1
|
||||||
|
# Sometimes this fails when user does not have permissions to secrets
|
||||||
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
||||||
coverage-reports: test/reports/cobertura/runTests.sh/cobertura.xml
|
coverage-reports: test/reports/cobertura/runTests.sh/cobertura.xml
|
||||||
|
@ -244,8 +244,6 @@ jobs:
|
||||||
if: ${{ github.repository == 'github/super-linter' && github.ref == 'refs/heads/main' }}
|
if: ${{ github.repository == 'github/super-linter' && github.ref == 'refs/heads/main' }}
|
||||||
uses: docker/build-push-action@v2.7.0
|
uses: docker/build-push-action@v2.7.0
|
||||||
with:
|
with:
|
||||||
cache-from: type=gha
|
|
||||||
cache-to: type=gha,mode=max
|
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
build-args: |
|
build-args: |
|
||||||
|
|
Loading…
Reference in a new issue