From 605cc6b85a8489ce756f7527dcb9f551e2dbc0cc Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Wed, 21 Dec 2022 23:56:53 +0100 Subject: [PATCH] RFC: change default directory to `src,ext`. (#19) --- README.md | 6 +++--- action.yml | 2 +- main.jl | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 53f6763..a8a0bba 100644 --- a/README.md +++ b/README.md @@ -14,17 +14,17 @@ See [PkgTemplates.jl](https://github.com/invenia/PkgTemplates.jl/blob/master/tes files: lcov.info ``` -One can also specify the directory or directories to use via the `directories` input (which defaults to `src`). E.g. +One can also specify the directory or directories (comma separated) to use via the `directories` input (which defaults to `src,ext`). E.g. ```yaml - uses: julia-actions/julia-processcoverage@v1 with: - directories: src,examples + directories: src,ext,examples - uses: codecov/codecov-action@v2 with: files: lcov.info ``` -instructs the action to look for coverage information in both `src` and an `examples` folder. Likewise, use +instructs the action to look for coverage information in `src`, `ext`, and an `examples` folder. Likewise, use ```yaml - uses: julia-actions/julia-processcoverage@v1 with: diff --git a/action.yml b/action.yml index 8bc0e9f..bce2650 100644 --- a/action.yml +++ b/action.yml @@ -10,7 +10,7 @@ inputs: directories: description: 'Comma-separated list of directories to look for coverage information (e.g. `src,examples`)' required: false - default: 'src' + default: 'src,ext' runs: using: 'composite' diff --git a/main.jl b/main.jl index 10ce604..9362e58 100644 --- a/main.jl +++ b/main.jl @@ -6,7 +6,7 @@ Pkg.add(PackageSpec(name="CoverageTools")) using CoverageTools -directories = get(ENV, "INPUT_DIRECTORIES", "src") +directories = get(ENV, "INPUT_DIRECTORIES", "src,ext") dirs = filter!(!isempty, split(directories, ",")) for dir in dirs isdir(dir) || error("directory \"$dir\" not found!")