Skip to content

Commit

Permalink
Drop Deprecations (#8)
Browse files Browse the repository at this point in the history
* Removed Deprecated Features/Tests

* Added coverage and test results to PR
  • Loading branch information
richardpiazza authored Nov 11, 2022
1 parent ec0dee2 commit 8b1e515
Show file tree
Hide file tree
Showing 13 changed files with 40 additions and 1,471 deletions.
41 changes: 36 additions & 5 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,56 @@ on:
pull_request:
branches: [ main ]

env:
PACKAGE_NAME: CodeQuickKit

jobs:
macos-build:

runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- name: Checkout Source
uses: actions/checkout@v3

- name: Build (macOS)
run: swift build -v

- name: Run tests
run: swift test -v
run: swift test --enable-code-coverage -v 2>&1 | xcpretty --report junit

- name: Code Coverage
run: xcrun llvm-cov export -format="lcov" .build/debug/${{ env.PACKAGE_NAME }}PackageTests.xctest/Contents/MacOS/${{ env.PACKAGE_NAME }}PackageTests -instr-profile .build/debug/codecov/default.profdata > build/reports/coverage.lcov

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: test-results
path: |
build/reports/junit.xml
build/reports/coverage.lcov
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
with:
files: build/reports/junit.xml

- name: Publish Code Coverage
uses: vebr/jest-lcov-reporter@v0.2.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
lcov-file: build/reports/coverage.lcov
update-comment: true

ubuntu-build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Checkout Source
uses: actions/checkout@v3

- name: Build (Ubuntu)
run: swift build -v

- name: Run tests
run: swift test -v

59 changes: 0 additions & 59 deletions Sources/CodeQuickKit/Deprecated/Bundle+Modules.swift

This file was deleted.

147 changes: 0 additions & 147 deletions Sources/CodeQuickKit/Deprecated/DateFormatter.swift

This file was deleted.

Loading

0 comments on commit 8b1e515

Please sign in to comment.