From 2976a507b0086d3c8bd98b33884dea4d3a10d6d7 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Wed, 14 Oct 2020 12:43:35 +0200 Subject: [PATCH] Make coverage optional (#19) * Make coverage optional * Apply suggestions from code review * typo --- action.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index caa9867..c3dfaca 100644 --- a/action.yml +++ b/action.yml @@ -10,6 +10,9 @@ inputs: inline: description: 'Value passed to the --inline flag. Options: yes | no. Default value: yes.' default: 'yes' + coverage: + description: 'Value determining whether to test with coverage or not. Options: true | false. Default value: true.' + default: 'true' runs: using: 'composite' @@ -30,5 +33,5 @@ runs: # the request metadata to pkg.julialang.org when installing # packages via `Pkg.test`. JULIA_PKG_SERVER: "" - - run: julia --color=yes --check-bounds=yes --inline=${{ inputs.inline }} --project -e 'using Pkg; Pkg.test(coverage=true)' + - run: julia --color=yes --check-bounds=yes --inline=${{ inputs.inline }} --project -e 'using Pkg; Pkg.test(coverage=${{ inputs.coverage }})' shell: bash