spatialos-sdk 0.1.5

High-level SDK built around spatialos-sys
name: coverage

on: [push]

jobs:
  test:
    name: coverage
    runs-on: ubuntu-latest

    container:
      image: xd009642/tarpaulin
      options: --security-opt seccomp=unconfined

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

      - name: get-spatial-cli
        uses: Project-StarDust/get-spatial-cli-action@v1.4
        with:
          refresh_token: ${{secrets.SPATIAL_REFRESH_TOKEN}}

      - name: Generate code coverage
        run: cargo tarpaulin --verbose --all-features --workspace --timeout 120 --out Xml

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