From 09cbe1931d2e2cb36b74273689784cb75a857a1e Mon Sep 17 00:00:00 2001 From: Roman Mazeev Date: Mon, 8 Jan 2024 13:36:47 +0100 Subject: [PATCH] Update README.md and Build and test.yml --- .../workflows/Build and test framework.yml | 17 -------------- .github/workflows/Build and test.yml | 22 +++++++++++++++++++ README.md | 3 ++- 3 files changed, 24 insertions(+), 18 deletions(-) delete mode 100644 .github/workflows/Build and test framework.yml create mode 100644 .github/workflows/Build and test.yml diff --git a/.github/workflows/Build and test framework.yml b/.github/workflows/Build and test framework.yml deleted file mode 100644 index dd32d7d..0000000 --- a/.github/workflows/Build and test framework.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Build and test - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: macos-13 - - steps: - - uses: actions/checkout@v2 - - name: Build and test - run: swift test -v --enable-code-coverage diff --git a/.github/workflows/Build and test.yml b/.github/workflows/Build and test.yml new file mode 100644 index 0000000..845fef0 --- /dev/null +++ b/.github/workflows/Build and test.yml @@ -0,0 +1,22 @@ +name: Build and test + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: macos-13 + + steps: + - uses: actions/checkout@v3 + - name: Run tests + run: swift test --enable-code-coverage + + - name: Test coverage + uses: maxep/spm-lcov-action@0.3.0 + with: + output-file: ./coverage/lcov.info diff --git a/README.md b/README.md index 68dfc49..abc1cec 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).