diff --git a/.github/workflows/Build and test framework.yml b/.github/workflows/Build and test.yml similarity index 58% rename from .github/workflows/Build and test framework.yml rename to .github/workflows/Build and test.yml index dd32d7d..0073096 100644 --- a/.github/workflows/Build and test framework.yml +++ b/.github/workflows/Build and test.yml @@ -12,6 +12,6 @@ jobs: runs-on: macos-13 steps: - - uses: actions/checkout@v2 - - name: Build and test - run: swift test -v --enable-code-coverage + - uses: actions/checkout@v3 + - name: Run tests + run: swift test --enable-code-coverage diff --git a/README.md b/README.md index 68dfc49..052d7cf 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -[![SPM](https://img.shields.io/badge/SPM-compatible-brightgreen.svg)](https://github.com/romanmazeev/MRZParser/blob/master/Package.swift) +[![Build and test](https://github.com/romanmazeev/MRZScanner/actions/workflows/Build%20and%20test.yml/badge.svg)](https://github.com/romanmazeev/MRZScanner/actions/workflows/Build%20and%20test.yml) +[![SPM](https://img.shields.io/badge/SPM-compatible-brightgreen.svg)](https://github.com/romanmazeev/MRZScanner/blob/master/Package.swift) # MRZScanner Library for scanning documents via [MRZ](https://en.wikipedia.org/wiki/Machine-readable_passport) using [ Vision API](https://developer.apple.com/documentation/vision/vnrecognizetextrequest). @@ -30,6 +31,9 @@ ScanningConfiguration(orientation: .up, regionOfInterest: roi, minimumTextHeight /// Live scanning for try await scanningResult in imageStream.scanForMRZCode(configuration: configuration) { // Handle `scanningResult` here + + // Use `return` to cancel scanning + return } /// Single scanning