Add gestures initial functionality #743
Workflow file for this run
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: Codecov | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
codecov: | |
container: | |
image: swiftlang/swift:nightly-5.7-focal | |
runs-on: ubuntu-latest | |
steps: | |
- run: apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y gtk+-3.0 libgtk+-3.0 | |
- name: Checkout Branch | |
uses: actions/checkout@v2 | |
- name: Build Test Target | |
run: swift build -Xswiftc -profile-coverage-mapping -Xswiftc -profile-generate --product TokamakPackageTests | |
- name: Run Tests | |
run: swift test --enable-code-coverage --skip-build | |
- name: Generate Branch Coverage Report | |
uses: mattpolzin/[email protected] | |
id: cov | |
with: | |
MINIMUM_COVERAGE: 15 | |
- name: Post Positive Results | |
if: ${{ success() }} | |
run: | | |
echo "::warning file=Package.swift,line=1,col=1::The current code coverage percentage is passing with ${{ steps.cov.outputs.codecov }} (minimum allowed: ${{ steps.cov.outputs.minimum_coverage }}%)." | |
- name: Post Negative Results | |
if: ${{ failure() }} | |
run: | | |
echo "::error file=Package.swift,line=1,col=1::The current code coverage percentage is failing with ${{ steps.cov.outputs.codecov }} (minimum allowed: ${{ steps.cov.outputs.minimum_coverage }}%)." |