diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e43927f..5b9421a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,10 @@ on: pull_request: jobs: ci: - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + runs-on: ${{ matrix.os }} steps: - name: Checkout uses: actions/checkout@v3 @@ -31,3 +34,5 @@ jobs: run: | make checkformatting make lint + - name: E2E Test + run: make test-e2e diff --git a/Makefile b/Makefile index fffa660..3ee1033 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,11 @@ lint: test: cargo test --workspace +.PHONY: test-e2e +test-e2e: + # TODO - Actually check the output is correct + cargo run --release -p ocrs-cli ocrs-cli/test-data/why-rust.png + .PHONY: wasm wasm: RUSTFLAGS="-C target-feature=+simd128" cargo build --release --target wasm32-unknown-unknown --package ocrs diff --git a/ocrs-cli/test-data/why-rust.png b/ocrs-cli/test-data/why-rust.png new file mode 100644 index 0000000..4d0fef4 Binary files /dev/null and b/ocrs-cli/test-data/why-rust.png differ