enqueue-email 0.1.0

Send a bookmark via email, enqueuing it with MSMTP queue
Documentation
name: test coverage

on:
  push:
    branches:
      - "*"
  pull_request:
    branches:
      - "*"

jobs:
  check:
    name: coverage
    runs-on: ${{matrix.os}}
    strategy:
      matrix:
        os: [ubuntu-latest]

    steps:
      - name: checkout
        uses: actions/checkout@v2

      - name: toolchain
        uses: actions-rs/toolchain@v1
        with:
          toolchain: nightly
          override: true
          default: true

      - name: install X11 dependencies
        run: |
          sudo apt-get update
          sudo apt-get install --allow-unauthenticated -y -qq libxcb-shape0-dev libxcb-xfixes0-dev libx11-xcb-dev

      - name: install xvfb
        run: |
          sudo apt update
          sudo apt-get install --allow-unauthenticated -y -qq xvfb

      - name: setup virtual display
        if: ${{ runner.os }} == "Linux"
        run: |
          sudo Xvfb :99 -screen 0 800x600x24 &

      - name: tarpaulin
        uses: actions-rs/tarpaulin@v0.1
        with:
          version: "latest"
          args: "--features live-tests"
        env:
          DISPLAY: ":99"

      # - name: Upload to codecov.io
      #   uses: codecov/codecov-action@v1.0.2
      #   with:
      #     token: ${{secrets.CODECOV_TOKEN}}

      - name: archive code coverage results
        uses: actions/upload-artifact@v1
        with:
          name: code-coverage-report
          path: cobertura.xml

# References
#
# https://github.com/actions-rs/grcov
# https://github.com/actions-rs/toolchain
# https://github.com/actions-rs/tarpaulin
# https://github.com/actions/checkout
# https://github.com/actions/upload-artifact
# https://github.com/codecov/codecov-action