Skip to content

chore: Update with latest xcode #53

chore: Update with latest xcode

chore: Update with latest xcode #53

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- run: swift test --enable-code-coverage
- name: show all files
shell: bash
run: ls -a
- name: Archive the build for debugging
uses: actions/upload-artifact@v4
with:
name: build-files-{{ matrix.os }}
path: |
.build/
- uses: ./
name: Run swifty-code-coverage
with:
build-path: .build
target: SamplePackageTests.xctest
is-spm: true
output: "coverage/lcov.info"
output-artifact-name: "codecov-artifact"
- name: Upload to Codecov
run: |
bash <(curl https://codecov.io/bash) -f "coverage/*.info"
shell: bash
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}