Merge pull request #80 from adobe/staging #86
This file contains 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: Build | |
on: | |
push: | |
branches: | |
- dev | |
- main | |
- dev-** | |
paths: | |
- 'Sources/**' | |
- 'Tests/**' | |
pull_request: | |
branches: | |
- dev | |
- main | |
- dev-** | |
paths: | |
- 'Sources/**' | |
- 'Tests/**' | |
jobs: | |
build: | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: 15.0.1 | |
- name: Install swiftformat | |
run: brew install swiftformat | |
- name: Install SwiftLint | |
run: which swiftLint || brew install swiftlint | |
- name: Linting | |
run: make lint; make check-format | |
- name: Build | |
run: swift build -v | |
- name: Run tests | |
run: swift test -v --enable-code-coverage | |
- name: Prepare Code Coverage | |
run: make generate-lcov | |
- name: Upload Code Coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
files: info.lcov | |
verbose: true | |
name: aep-rules-engine | |
move_coverage_to_trash: true | |