Remove old excludes #6
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: "pr-validator" | |
on: | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
jobs: | |
swiftlint: | |
name: Swiftlint | |
runs-on: apps-ci | |
timeout-minutes: 120 | |
steps: | |
- name: Checkout π | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Rake βοΈ | |
run: rake | |
- 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/' | |
build: | |
name: Test | |
runs-on: apps-ci | |
timeout-minutes: 120 | |
steps: | |
- name: Checkout π | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- 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@v4 | |
with: | |
name: output | |
path: ${{ github.workspace }}/report.lcov |