Merge pull request #17 from veryfi/feature/LP-958-add-new-apis #14
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: Veryfi-swift unit test | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Swift | |
uses: fwal/setup-swift@v1 | |
with: | |
release-version: '5.5.0' | |
- name: Tests | |
run: | | |
swift build | |
swift test --enable-code-coverage | |
- name: Generate badge | |
run: | | |
cd .github/metrics/ | |
python generate_badge.py | |
cd ../../ | |
- name: Commit Code Coverage Image to Repo | |
uses: EndBug/add-and-commit@v5 | |
with: | |
author_name: Github actions | |
author_email: [email protected] | |
message: "Update report" | |
add: "./.github/metrics" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |