-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (42 loc) · 1.16 KB
/
packageValidation.yml
File metadata and controls
53 lines (42 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: "Package Validation"
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
jobs:
swiftlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: SwiftLint
uses: norio-nomura/action-swiftlint@3.1.0
lint_podspec:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Lint podspec
run: pod lib lint
test:
runs-on: macos-latest
steps:
- name: Checkout branch
uses: actions/checkout@v2
- name: Build
run: swift build
- name: Run tests
run: swift test --enable-code-coverage
- name: Generate code coverage report
run: xcrun llvm-cov export -format="lcov" .build/debug/JSONFactorablePackageTests.xctest/Contents/MacOS/JSONFactorablePackageTests
-instr-profile .build/debug/codecov/default.profdata
--ignore-filename-regex="Test|Mock"
> info.lcov
- name: Upload code coverage report
uses: coverallsapp/github-action@v1.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./info.lcov