diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f1d2bcc..bd80aec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,6 +41,7 @@ jobs: coverage: true env: COVERAGE: ${{ matrix.coverage }} + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} continue-on-error: ${{ endsWith(matrix.ruby, 'head') }} steps: - uses: actions/checkout@v2 @@ -54,7 +55,3 @@ jobs: run: bundle install --jobs 4 --retry 3 - name: Run tests run: bundle exec rake ci - - name: Send coverage to Coveralls - uses: coverallsapp/github-action@master - with: - github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index d1950bf..f58de5e 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -if ENV["COVERAGE"] +if ENV["COVERAGE"] == "true" require "simplecov" require "coveralls"