Skip to content

fix(#303): make sure onPageChanged will be called #267

fix(#303): make sure onPageChanged will be called

fix(#303): make sure onPageChanged will be called #267

Workflow file for this run

# This workflow will trigger on pull-request to main
# It will run the Swift Package tests, output the code coverage and upload it to Codecov.
name: Unit Tests
on:
# Trigger the workflow on push pull request or manually
pull_request:
branches: [ main ]
push:
branches: [ main ]
workflow_dispatch:
jobs:
run_tests:
name: Run tests and Get Code Coverage
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Run tests
run: swift test --enable-code-coverage
- name: Test coverage
uses: maxep/spm-lcov-action@0.3.1
with:
output-file: ./coverage/lcov.info
- name: Upload coverage to Codecov
if: ${{ github.event_name == 'push' }}
uses: codecov/codecov-action@v1
with:
file: ./coverage/lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
env_vars: SWIFT
name: codecov-${{ github.head_ref }}-${{ steps.date.outputs.date }}
fail_ci_if_error: true