Skip to content

Commit

Permalink
ci: remove octocov
Browse files Browse the repository at this point in the history
  • Loading branch information
kkebo committed Oct 12, 2024
1 parent ddcbed9 commit 659b4c7
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 50 deletions.
32 changes: 29 additions & 3 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,35 @@ jobs:
- run: swift --version
- run: swift build --build-tests --disable-xctest --enable-code-coverage
- run: swift test --skip-build --disable-xctest --enable-code-coverage
# FIXME: `grep -v 184467440737095` is a workaround for octocov parse error
- run: llvm-cov export --format=lcov .build/debug/zyphyPackageTests.xctest --instr-profile .build/debug/codecov/default.profdata --ignore-filename-regex=".build|Tests|TokenizerMacros" | grep -v 184467440737095 > coverage_report.lcov
- uses: k1LoW/octocov-action@v1
- name: llvm-cov report
id: report
run: |
echo 'OUTPUT<<EOF' >> "$GITHUB_OUTPUT"
llvm-cov report .build/debug/zyphyPackageTests.xctest --instr-profile=.build/debug/codecov/default.profdata --ignore-filename-regex=".build|Tests|TokenizerMacros" --show-region-summary=false --show-functions=false --show-branch-summary=false --format=html >> "$GITHUB_OUTPUT"
echo 'EOF' >> "$GITHUB_OUTPUT"
- name: Create summary text
id: summary
env:
REPORT_OUTPUT: ${{ steps.report.outputs.OUTPUT }}
run: |
echo 'SUMMARY<<EOF' >> "$GITHUB_OUTPUT"
echo '## Coverage Summary' >> "$GITHUB_OUTPUT"
echo >> "$GITHUB_OUTPUT"
echo "$(date)" >> "$GITHUB_OUTPUT"
echo >> "$GITHUB_OUTPUT"
echo '```' >> "$GITHUB_OUTPUT"
echo "$REPORT_OUTPUT" >> "$GITHUB_OUTPUT"
echo '```' >> "$GITHUB_OUTPUT"
echo 'EOF' >> "$GITHUB_OUTPUT"
- name: Create a job summary
env:
SUMMARY: ${{ steps.summary.outputs.SUMMARY }}
run: echo "$SUMMARY" >> "$GITHUB_STEP_SUMMARY"
- name: Comment PR
uses: thollander/actions-comment-pull-request@v3
with:
message: ${{ steps.summary.outputs.SUMMARY }}
comment-tag: coverage
lint:
runs-on: ubuntu-latest
container: swiftlang/swift:nightly-6.0-jammy
Expand Down
21 changes: 0 additions & 21 deletions .octocov.yml

This file was deleted.

2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Zyphy

![coverage](coverage.svg)

Zyphy is (or will be) a fast web browser engine written in Swift.

> [!IMPORTANT]
Expand Down
24 changes: 0 additions & 24 deletions coverage.svg

This file was deleted.

0 comments on commit 659b4c7

Please sign in to comment.