-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.02 KB
/
tests.yml
File metadata and controls
45 lines (36 loc) · 1.02 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
name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
test:
name: Test SwiftUI Query
runs-on: macos-15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Show Swift version
run: swift --version
- name: Install SwiftLint
run: brew install swiftlint
- name: Lint Code
run: make lint
- name: Run Tests with Coverage
run: swift test --parallel --enable-code-coverage
- name: Generate Coverage Report
run: |
xcrun llvm-cov export \
.build/debug/swiftui-queryPackageTests.xctest/Contents/MacOS/swiftui-queryPackageTests \
-instr-profile=.build/debug/codecov/default.profdata \
-ignore-filename-regex=".build|Tests" \
-format="lcov" > coverage.lcov
continue-on-error: true
- name: Upload Coverage
uses: codecov/codecov-action@v4
with:
file: ./coverage.lcov
fail_ci_if_error: false
continue-on-error: true