From b4cc916c610fc6b737d4563111a5077cac680b74 Mon Sep 17 00:00:00 2001 From: hitode909 Date: Sun, 5 Apr 2020 15:20:39 +0900 Subject: [PATCH 1/2] archive result --- .github/workflows/test.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7af524f..4e23477 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,9 +33,9 @@ jobs: if: steps.cache.outputs.cache-hit != 'true' run: | cpanm --notest --installdeps . - cpanm -n Devel::Cover Devel::Cover::Report::Coveralls + cpanm -n Devel::Cover Devel::Cover::Report::Coveralls TAP::Harness::JUnit - name: test - run: prove -Ilib -r + run: prove -Ilib -r --harness TAP::Harness::JUnit env: HARNESS_PERL_SWITCHES: "-MDevel::Cover=+ignore,inc" @@ -45,4 +45,10 @@ jobs: cover -report coveralls env: COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} - if: matrix.perl-version == 'latest' \ No newline at end of file + if: matrix.perl-version == 'latest' + - name: Archive results + uses: actions/upload-artifact@v1 + with: + name: report + path: junit_output.xml + if: always() \ No newline at end of file From c59f95385eb6d7580de167ae181463f2679a92a5 Mon Sep 17 00:00:00 2001 From: hitode909 Date: Sun, 5 Apr 2020 15:22:48 +0900 Subject: [PATCH 2/2] change hash --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4e23477..a7065d4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,7 +27,7 @@ jobs: id: cache with: path: /usr/local/lib/perl5 - key: ${{ runner.os }}-perl-${{ matrix.perl-version }}-${{ hashFiles('cpanfile') }} + key: ${{ runner.os }}-perl-${{ matrix.perl-version }}-${{ hashFiles('cpanfile', '.github/workflows/test.yml') }} - name: install deps if: steps.cache.outputs.cache-hit != 'true'