Skip to content

Commit

Permalink
Merge pull request #4 from JosephDuffy/test-coverage
Browse files Browse the repository at this point in the history
Test coverage
  • Loading branch information
JosephDuffy authored Feb 1, 2024
2 parents 4359efc + ef8e69c commit 0e77401
Show file tree
Hide file tree
Showing 4 changed files with 649 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ${{ join(fromJSON(steps.convert-coverage.outputs.files), ',') }}
fail_ci_if_error: true
Expand Down Expand Up @@ -102,11 +104,11 @@ jobs:

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ${{ join(fromJSON(steps.convert-coverage.outputs.files), ',') }}
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

linux_tests:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion Sources/HashableMacroMacros/HashableMacro.swift
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ public struct HashableMacro: ExtensionMacro {
comparisons = InfixOperatorExprSyntax(
leftOperand: existingComparisons,
operator: BinaryOperatorExprSyntax(
leadingTrivia: .newline.appending(Trivia.spaces(8)),
leadingTrivia: .newline.appending(Trivia.spaces(4)),
operator: .binaryOperator("&&")
),
rightOperand: comparison
Expand Down
Loading

0 comments on commit 0e77401

Please sign in to comment.