-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 980 Bytes
/
ci.yml
File metadata and controls
33 lines (31 loc) · 980 Bytes
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
name: CI
permissions:
contents: read
pull-requests: write
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: macos-latest
env:
DEVELOPER_DIR: /Applications/Xcode_16.1.app/Contents/Developer
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v --enable-experimental-swift-testing --disable-xctest --enable-code-coverage
- name: Prepare coverage file
run: xcrun llvm-cov export -format="lcov" .build/debug/swift-environment-decoderPackageTests.xctest/Contents/MacOS/swift-environment-decoderPackageTests -instr-profile .build/debug/codecov/default.profdata > info.lcov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v6
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
fail_ci_if_error: true
verbose: true