fix codacy and remove cache as its prone to fail (#2503)

This commit is contained in:
Lukas Gravley 2022-02-14 14:47:36 -06:00 committed by GitHub
parent 9c964e6183
commit 5c109b745e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: |