diff options
author | Roy Ivy III <rivy.dev@gmail.com> | 2020-01-22 07:16:01 -0600 |
---|---|---|
committer | Roy Ivy III <rivy.dev@gmail.com> | 2020-01-29 18:36:13 -0600 |
commit | 0898ee6bf09c344e65e6761d6c6aec8ad3408366 (patch) | |
tree | bdcd12fc6d5924f972209e510b7962c0405c2dcf /.github | |
parent | 5ac168868e6150b0b6cda3182d65dac3d0694738 (diff) |
Maint/CI ~ temporarily disable non-working `cargo tarpaulin` test coverage
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/CICD.yml | 105 |
1 files changed, 53 insertions, 52 deletions
diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index f7039d1..d7a443c 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -231,55 +231,56 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - coverage: - name: Code Coverage - runs-on: ${{ matrix.job.os }} - strategy: - fail-fast: true - matrix: - # job: [ { os: ubuntu-latest }, { os: macos-latest }, { os: windows-latest } ] - job: [ { os: ubuntu-latest } ] ## cargo-tarpaulin is currently only available on linux - steps: - - uses: actions/checkout@v1 - # - name: Reattach HEAD ## may be needed for accurate code coverage info - # run: git checkout ${{ github.head_ref }} - - name: Initialize workflow variables - id: vars - shell: bash - run: | - # staging directory - 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>) - unset 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: - CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}" - - name: Create all needed build/work directories - shell: bash - run: | - mkdir -p '${{ steps.vars.outputs.STAGING }}/work' - - name: Install required packages - run: | - sudo apt-get -y install libssl-dev - pushd '${{ steps.vars.outputs.STAGING }}/work' >/dev/null - wget --no-verbose https://github.com/xd009642/tarpaulin/releases/download/0.9.3/cargo-tarpaulin-0.9.3-travis.tar.gz - tar xf cargo-tarpaulin-0.9.3-travis.tar.gz - cp cargo-tarpaulin "$(dirname -- "$(which cargo)")"/ - popd >/dev/null - - name: Generate coverage - run: | - cargo tarpaulin --out Xml - - name: Upload coverage results (CodeCov.io) - # CODECOV_TOKEN (aka, "Repository Upload Token" for REPO from CodeCov.io) ## set via REPO/Settings/Secrets - # 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>) - if: steps.vars.outputs.HAS_CODECOV_TOKEN - run: | - # CodeCov.io - cargo tarpaulin --out Xml - bash <(curl -s https://codecov.io/bash) - env: - CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}" + ## fix! [rivy; 2020-22-01] `cargo tarpaulin` is unable to test this repo at the moment; alternate recipe or another testing framework? + # coverage: + # name: Code Coverage + # runs-on: ${{ matrix.job.os }} + # strategy: + # fail-fast: true + # matrix: + # # job: [ { os: ubuntu-latest }, { os: macos-latest }, { os: windows-latest } ] + # job: [ { os: ubuntu-latest } ] ## cargo-tarpaulin is currently only available on linux + # steps: + # - uses: actions/checkout@v1 + # # - name: Reattach HEAD ## may be needed for accurate code coverage info + # # run: git checkout ${{ github.head_ref }} + # - name: Initialize workflow variables + # id: vars + # shell: bash + # run: | + # # staging directory + # 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>) + # unset 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: + # CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}" + # - name: Create all needed build/work directories + # shell: bash + # run: | + # mkdir -p '${{ steps.vars.outputs.STAGING }}/work' + # - name: Install required packages + # run: | + # sudo apt-get -y install libssl-dev + # pushd '${{ steps.vars.outputs.STAGING }}/work' >/dev/null + # wget --no-verbose https://github.com/xd009642/tarpaulin/releases/download/0.9.3/cargo-tarpaulin-0.9.3-travis.tar.gz + # tar xf cargo-tarpaulin-0.9.3-travis.tar.gz + # cp cargo-tarpaulin "$(dirname -- "$(which cargo)")"/ + # popd >/dev/null + # - name: Generate coverage + # run: | + # cargo tarpaulin --out Xml + # - name: Upload coverage results (CodeCov.io) + # # CODECOV_TOKEN (aka, "Repository Upload Token" for REPO from CodeCov.io) ## set via REPO/Settings/Secrets + # # 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>) + # if: steps.vars.outputs.HAS_CODECOV_TOKEN + # run: | + # # CodeCov.io + # cargo tarpaulin --out Xml + # bash <(curl -s https://codecov.io/bash) + # env: + # CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}" |