mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
Maint/CI ~ temporarily disable non-working cargo tarpaulin test coverage
This commit is contained in:
+53
-52
@@ -231,55 +231,56 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
coverage:
|
## fix! [rivy; 2020-22-01] `cargo tarpaulin` is unable to test this repo at the moment; alternate recipe or another testing framework?
|
||||||
name: Code Coverage
|
# coverage:
|
||||||
runs-on: ${{ matrix.job.os }}
|
# name: Code Coverage
|
||||||
strategy:
|
# runs-on: ${{ matrix.job.os }}
|
||||||
fail-fast: true
|
# strategy:
|
||||||
matrix:
|
# fail-fast: true
|
||||||
# job: [ { os: ubuntu-latest }, { os: macos-latest }, { os: windows-latest } ]
|
# matrix:
|
||||||
job: [ { os: ubuntu-latest } ] ## cargo-tarpaulin is currently only available on linux
|
# # job: [ { os: ubuntu-latest }, { os: macos-latest }, { os: windows-latest } ]
|
||||||
steps:
|
# job: [ { os: ubuntu-latest } ] ## cargo-tarpaulin is currently only available on linux
|
||||||
- uses: actions/checkout@v1
|
# steps:
|
||||||
# - name: Reattach HEAD ## may be needed for accurate code coverage info
|
# - uses: actions/checkout@v1
|
||||||
# run: git checkout ${{ github.head_ref }}
|
# # - name: Reattach HEAD ## may be needed for accurate code coverage info
|
||||||
- name: Initialize workflow variables
|
# # run: git checkout ${{ github.head_ref }}
|
||||||
id: vars
|
# - name: Initialize workflow variables
|
||||||
shell: bash
|
# id: vars
|
||||||
run: |
|
# shell: bash
|
||||||
# staging directory
|
# run: |
|
||||||
STAGING='_staging'
|
# # staging directory
|
||||||
echo set-output name=STAGING::${STAGING}
|
# STAGING='_staging'
|
||||||
echo ::set-output name=STAGING::${STAGING}
|
# echo set-output name=STAGING::${STAGING}
|
||||||
# check for CODECOV_TOKEN availability (work-around for inaccessible 'secrets' object for 'if'; see <https://github.community/t5/GitHub-Actions/jobs-lt-job-id-gt-if-does-not-work-with-env-secrets/m-p/38549>)
|
# echo ::set-output name=STAGING::${STAGING}
|
||||||
unset HAS_CODECOV_TOKEN
|
# # check for CODECOV_TOKEN availability (work-around for inaccessible 'secrets' object for 'if'; see <https://github.community/t5/GitHub-Actions/jobs-lt-job-id-gt-if-does-not-work-with-env-secrets/m-p/38549>)
|
||||||
if [ -n $CODECOV_TOKEN ]; then HAS_CODECOV_TOKEN='true' ; fi
|
# unset HAS_CODECOV_TOKEN
|
||||||
echo set-output name=HAS_CODECOV_TOKEN::${HAS_CODECOV_TOKEN}
|
# if [ -n $CODECOV_TOKEN ]; then HAS_CODECOV_TOKEN='true' ; fi
|
||||||
echo ::set-output name=HAS_CODECOV_TOKEN::${HAS_CODECOV_TOKEN}
|
# echo set-output name=HAS_CODECOV_TOKEN::${HAS_CODECOV_TOKEN}
|
||||||
env:
|
# echo ::set-output name=HAS_CODECOV_TOKEN::${HAS_CODECOV_TOKEN}
|
||||||
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"
|
# env:
|
||||||
- name: Create all needed build/work directories
|
# CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"
|
||||||
shell: bash
|
# - name: Create all needed build/work directories
|
||||||
run: |
|
# shell: bash
|
||||||
mkdir -p '${{ steps.vars.outputs.STAGING }}/work'
|
# run: |
|
||||||
- name: Install required packages
|
# mkdir -p '${{ steps.vars.outputs.STAGING }}/work'
|
||||||
run: |
|
# - name: Install required packages
|
||||||
sudo apt-get -y install libssl-dev
|
# run: |
|
||||||
pushd '${{ steps.vars.outputs.STAGING }}/work' >/dev/null
|
# sudo apt-get -y install libssl-dev
|
||||||
wget --no-verbose https://github.com/xd009642/tarpaulin/releases/download/0.9.3/cargo-tarpaulin-0.9.3-travis.tar.gz
|
# pushd '${{ steps.vars.outputs.STAGING }}/work' >/dev/null
|
||||||
tar xf cargo-tarpaulin-0.9.3-travis.tar.gz
|
# wget --no-verbose https://github.com/xd009642/tarpaulin/releases/download/0.9.3/cargo-tarpaulin-0.9.3-travis.tar.gz
|
||||||
cp cargo-tarpaulin "$(dirname -- "$(which cargo)")"/
|
# tar xf cargo-tarpaulin-0.9.3-travis.tar.gz
|
||||||
popd >/dev/null
|
# cp cargo-tarpaulin "$(dirname -- "$(which cargo)")"/
|
||||||
- name: Generate coverage
|
# popd >/dev/null
|
||||||
run: |
|
# - name: Generate coverage
|
||||||
cargo tarpaulin --out Xml
|
# run: |
|
||||||
- name: Upload coverage results (CodeCov.io)
|
# cargo tarpaulin --out Xml
|
||||||
# CODECOV_TOKEN (aka, "Repository Upload Token" for REPO from CodeCov.io) ## set via REPO/Settings/Secrets
|
# - name: Upload coverage results (CodeCov.io)
|
||||||
# if: secrets.CODECOV_TOKEN (not supported {yet?}; see <https://github.community/t5/GitHub-Actions/jobs-lt-job-id-gt-if-does-not-work-with-env-secrets/m-p/38549>)
|
# # CODECOV_TOKEN (aka, "Repository Upload Token" for REPO from CodeCov.io) ## set via REPO/Settings/Secrets
|
||||||
if: steps.vars.outputs.HAS_CODECOV_TOKEN
|
# # if: secrets.CODECOV_TOKEN (not supported {yet?}; see <https://github.community/t5/GitHub-Actions/jobs-lt-job-id-gt-if-does-not-work-with-env-secrets/m-p/38549>)
|
||||||
run: |
|
# if: steps.vars.outputs.HAS_CODECOV_TOKEN
|
||||||
# CodeCov.io
|
# run: |
|
||||||
cargo tarpaulin --out Xml
|
# # CodeCov.io
|
||||||
bash <(curl -s https://codecov.io/bash)
|
# cargo tarpaulin --out Xml
|
||||||
env:
|
# bash <(curl -s https://codecov.io/bash)
|
||||||
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"
|
# env:
|
||||||
|
# CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user