Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Commit

Permalink
"working_directory" support; add test to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lpenz committed Dec 25, 2023
1 parent 71e856f commit 7629251
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,20 @@ jobs:
- run: docker pull rust:slim
- uses: ./ghaction-rust-coverage
- run: grep '^SF:' lcov.info
test:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
path: ghaction-rust-coverage
- uses: actions/[email protected]
with:
repository: lpenz/ogle
path: ogle
fetch-depth: 0
- uses: ./ghaction-rust-coverage
with:
working_directory: ogle
publish-dockerhub:
needs: [ omnilint, docker-build ]
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
### Inputs
- `dependencies_debian`: Debian packages to install before running the tests.
- `working_directory`: `cd` to this directory before running the action.
- `output_type`: output type, one of `html`, `text`, `json` or `lcov`.
- `output_path`: output path.
- `test_args`: arguments to pass to the test - `--nocapture` for example.
Expand Down
4 changes: 4 additions & 0 deletions entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ export RUST_BACKTRACE

set -e -x

if [ -n "$INPUT_WORKING_DIRECTORY" ]; then
cd "$INPUT_WORKING_DIRECTORY"
fi

install_dependencies

CARGO_INCREMENTAL='0'
Expand Down

0 comments on commit 7629251

Please sign in to comment.