Skip to content

Add SPM support and remove Cocoapods #121

Add SPM support and remove Cocoapods

Add SPM support and remove Cocoapods #121

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, ubuntu-latest]
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
~/.bundle
key: ${{ runner.os }}-cache-gems-${{ hashFiles('**/Gemfile.lock') }}
- name: Rake βš™οΈ
run: rake
- 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@v3
with:
name: output
path: ${{ github.workspace }}/report.lcov