Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for branches other than master? #61

Closed
Th3Whit3Wolf opened this issue Sep 9, 2020 · 1 comment
Closed

Support for branches other than master? #61

Th3Whit3Wolf opened this issue Sep 9, 2020 · 1 comment

Comments

@Th3Whit3Wolf
Copy link

Here is my yml that I stole from here

name: Coverage

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

env:
  CARGO_TERM_COLOR: always
  COVERALLS_GIT_BRANCH: main

jobs:
    coverage:
        name: Code Coverage
        runs-on: ubuntu-latest
        steps:
          - name: Checkout repository
            uses: actions/checkout@v2
    
          - name: Install stable toolchain
            uses: actions-rs/toolchain@v1
            with:
              toolchain: stable
              override: true
    
          - name: Run cargo-tarpaulin
            uses: actions-rs/tarpaulin@v0.1
            with:
              args: '--ignore-tests --out Lcov'
    
          - name: upload to Coveralls
            if: ${{ github.event_name == 'push' }}
            uses: coverallsapp/github-action@master
            with:
              github-token: ${{ secrets.GITHUB_TOKEN }}
              path-to-lcov: './lcov.info

I must be doing something dumb because github tells me No jobs were run but I'm not seeing it.

@Th3Whit3Wolf
Copy link
Author

I missed a single quote on the last line. Apologies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant