Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

out-type #8

Open
vincentserpoul opened this issue Jun 25, 2020 · 1 comment
Open

out-type #8

vincentserpoul opened this issue Jun 25, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@vincentserpoul
Copy link

vincentserpoul commented Jun 25, 2020

Description

Unexpected input 'out-type', valid inputs are ['version', 'args', 'timeout', 'run-types']

Action output

Unexpected input 'out-type', valid inputs are ['version', 'args', 'timeout', 'run-types']

Expected behavior

according to the README, we can use out-type

@vincentserpoul vincentserpoul added the bug Something isn't working label Jun 25, 2020
@rrybarczyk
Copy link

I am encountering a similar error when setting out-type: 'Stdout'.

My workflow file:

on: [push, pull_request]

name: build

jobs:
  check:
    name: Rust project
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v2

      - name: Install stable toolchain
        uses: actions-rs/toolchain@v1
        with:
          toolchain: stable
          override: true

      - name: Run cargo-tarpaulin
        uses: actions-rs/[email protected]
        with:
          version: '0.15.0'
          args: '-- --test-threads 1'
          out-type: 'Stdout'

My GH Actions error:

Run actions-rs/[email protected]
[tarpaulin] downloading cargo-tarpaulin from https://github.com/xd009642/tarpaulin/releases/download/0.15.0/cargo-tarpaulin-0.15.0-travis.tar.gz
/usr/bin/tar xz --warning=no-unknown-keyword -C /home/runner/work/_temp/9d37a021-4522-4615-b28f-97f9f54105f0 -f /home/runner/work/_temp/f09ef72b-ff25-4af3-97ea-b5541b7ba333
[tarpaulin] running tests with coverage tracking
/home/runner/.cargo/bin/cargo tarpaulin --out Stdout -- --test-threads 1
Aug 22 16:52:24.160  INFO cargo_tarpaulin::config: Creating config
Aug 22 16:52:24.407  INFO cargo_tarpaulin: Running Tarpaulin
Aug 22 16:52:24.407  INFO cargo_tarpaulin: Building project
   Compiling covtests v0.1.0 (/home/runner/work/covtests/covtests)
    Finished test [unoptimized + debuginfo] target(s) in 2.76s
Aug 22 16:52:27.363  INFO cargo_tarpaulin: Launching test
Aug 22 16:52:27.363  INFO cargo_tarpaulin: running /home/runner/work/covtests/covtests/target/debug/deps/covtests-0181a6d1fe7fdd46

running 1 test
test tests::test_ret_one ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

Aug 22 16:52:27.839  INFO cargo_tarpaulin::report: Coverage Results:
|| Tested/Total Lines:
|| src/main.rs: 4/8
|| 
50.00% coverage, 4/8 lines covered
Error: "Output format is currently not supported!"
Error: The process '/home/runner/.cargo/bin/cargo' failed with exit code 1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants