Skip to content

Add test for mod function. #147

Add test for mod function.

Add test for mod function. #147

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build_macos:
runs-on: macos-12
strategy:
matrix:
xcode:
- "14.2"
steps:
- uses: actions/checkout@v3
- name: Select Xcode ${{ matrix.xcode }}
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
- name: Run make
run: env && make
- name: Get Test Coverage
run: |
set -- $(< percentage.txt)
echo "PERCENTAGE=${1}" >> $GITHUB_ENV
- name: Create Coverage Badge
uses: schneegans/[email protected]
with:
auth: ${{ secrets.GIST_UPDATE }}
gistID: ad941184ed256708952a2057fc5d7bb4
filename: swift-math-parser-coverage.json
label: Coverage
message: ${{ env.PERCENTAGE }}
color: success
build_ubuntu:
strategy:
matrix:
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Build
run: swift build
- name: Run tests
run: swift test