Add SPM support and remove Cocoapods #137
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "build-and-tests" | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
jobs: | |
build: | |
name: Check build & tests | |
runs-on: apps-ci | |
timeout-minutes: 120 | |
steps: | |
- name: Remove any previous hook π₯Έ | |
run: rm -rf .git/hooks | |
- name: Checkout π | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Cache for Gems π | |
uses: actions/cache@v3 | |
with: | |
path: | | |
.gems | |
key: ${{ runner.os }}-cache-gems-${{ hashFiles('**/Gemfile.lock') }} | |
- name: Rake βοΈ | |
run: rake | |
- name: Disable Overcommit π | |
run: bundle exec overcommit --uninstall | |
- name: Swiftlint π | |
run: | | |
set -o pipefail && mint run swiftlint --strict \ | |
| sed -E 's/^(.*):([0-9]+):([0-9]+): (warning|error|[^:]+): (.*)/::\4 file=\1,line=\2,col=\3::\5/' | |
- name: Run tests βοΈ | |
run: rake test | |
- name: Generate lcov file π | |
run: | | |
xcrun llvm-cov export \ | |
-format="lcov" \ | |
--ignore-filename-regex=".build|.test-bundle|Tests/" \ | |
.build/debug/MiniPackageTests.xctest/Contents/MacOS/MiniPackageTests \ | |
-instr-profile .build/debug/codecov/default.profdata \ | |
> report.lcov | |
- name: Upload package tests coverage to Codecov π | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: report.lcov | |
flags: package | |
fail_ci_if_error: true | |
name: codecov-package | |
gcov_ignore: Tests/* | |
- name: Save Output π¦ | |
uses: actions/upload-artifact@v4 | |
with: | |
name: output | |
path: ${{ github.workspace }}/report.lcov |