Skip to content

Commit

Permalink
ci: Fix codecov and dependabot default commit prefix (#1801)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrezza committed Aug 24, 2024
1 parent d49ec6d commit 57af748
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 4 deletions.
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Dependabot dependency updates
# Docs: https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm"
# Location of package-lock.json
directory: "/"
# Check daily for updates
schedule:
interval: "daily"
commit-message:
# Set commit message prefix
prefix: "refactor"
31 changes: 27 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,34 @@ jobs:
path: |
~/Library/Developer/Xcode/DerivedData/Parse-*/Logs/Test
~/Library/Developer/Xcode/DerivedData/**/Logs/Build
- name: Upload Coverage
uses: codecov/[email protected]
- name: Install test parsing dependencies
if: matrix.script == 'test:ios'
# Workaround as codecov cannot parse xcresult files;
# https://github.com/codecov/uploader/issues/1078
# https://github.com/codecov/codecov-action/issues/1367
run: |
brew install a7ex/homebrew-formulae/xcresultparser
- name: Convert Xcode test results for code coverage upload
if: matrix.script == 'test:ios'
env:
COVERAGE_PATH: ${{ github.workspace }}/build/${{ matrix.script }}-coverage.xml
run: |
COVERAGE_PATH=${COVERAGE_PATH//:/-}
echo COVERAGE_PATH=$COVERAGE_PATH >> $GITHUB_ENV
echo "TEST_RESULTS: $TEST_RESULTS"
echo "COVERAGE_PATH: $COVERAGE_PATH"
set -o pipefail && \
xcresultparser --output-format cobertura \
"$TEST_RESULTS" >"$COVERAGE_PATH"
- name: Upload code coverage
if: matrix.script == 'test:ios'
uses: codecov/codecov-action@v4
with:
xcode: true
xcode_archive_path: ${{ env.TEST_RESULTS }}
# Set to `true` once codecov token bug is fixed; https://github.com/parse-community/parse-server/issues/9129
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}
plugin: xcode
file: ${{ env.COVERAGE_PATH }}
docs:
runs-on: macos-13
timeout-minutes: 15
Expand Down

0 comments on commit 57af748

Please sign in to comment.