Skip to content

Updated assets

Updated assets #8

Workflow file for this run

name: ci
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
LCOV_PATH: .build/artifacts/info.lcov
BUILD_FOLDER: .build/debug/XFormatterPackageTests.xctest/Contents/MacOS/XFormatterPackageTests
PROFDATA_FOLDER: .build/debug/codecov/default.profdata
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: SwiftLint
uses: norio-nomura/action-swiftlint@3.2.1
test:
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Test
run: |
swift test --enable-code-coverage
xcrun llvm-cov report $BUILD_FOLDER -instr-profile $PROFDATA_FOLDER
xcrun llvm-cov export -format="lcov" $BUILD_FOLDER -instr-profile $PROFDATA_FOLDER > $LCOV_PATH
- name: Upload Coverage Data
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ${{ env.LCOV_PATH }}
fail_ci_if_error: true