Skip to content

Update Rainbow to 4.2.0 (was 4.0.1) #26

Update Rainbow to 4.2.0 (was 4.0.1)

Update Rainbow to 4.2.0 (was 4.0.1) #26

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
runs-on: macOS-14
steps:
- uses: actions/checkout@v4
- name: Read Xcode version
id: xcode_version
run: echo "XCODE_VERSION=$(cat .xcode-version)" >> $GITHUB_ENV
- name: Setup Xcode using .xcode-version
uses: maxim-lobanov/setup-xcode@v1.6.0
with:
xcode-version: ${{ env.XCODE_VERSION }}
- name: Build
run: swift build -v
- name: Run tests
run: swift test --enable-code-coverage
- name: Generate coverage report
run: |
xcrun llvm-cov export \
-format="lcov" \
.build/debug/CLITablePackageTests.xctest/Contents/MacOS/CLITablePackageTests \
-instr-profile .build/debug/codecov/default.profdata > coverage_report.lcov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3.1.6
with:
fail_ci_if_error: false
file: coverage_report.lcov
token: ${{ secrets.CODECOV_TOKEN }}