Skip to content

Commit

Permalink
ci: run docker-compose stack so that the tests can actually be run …
Browse files Browse the repository at this point in the history
…in CI
  • Loading branch information
Rolv-Apneseth committed Nov 13, 2024
1 parent a78aab6 commit 4890a7f
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,18 @@ jobs:
- name: Lint
run: cargo clippy --all -- -D warnings

- name: Tests
run: cargo test --all --verbose
- name: Tests -
if: matrix.os == 'ubuntu-latest'
run: |
# Full tests for Linux only, due to requirement of running local API hosted through docker
if [ "$RUNNER_OS" == "Linux" ]; then
docker compose up -d --wait
# Wait for Frankfurter container to fetch data
sleep 60
cargo test --all --verbose
docker compose down
else
cargo test --package lib_frankfurter --lib
cargo test --package frankfurter_cli --bin frs
fi
shell: bash

0 comments on commit 4890a7f

Please sign in to comment.