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

Use Single job starter workflow #8

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,22 @@ jobs:
bundle install --jobs 4 --retry 3 --no-cache
bundle exec rspec

- uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: ruby-${{ matrix.ruby_version }}
path-to-lcov: ./coverage/lcov/sentry-sanitizer.lcov
parallel: true
# - uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# flag-name: ruby-${{ matrix.ruby_version }}
# path-to-lcov: ./coverage/lcov/sentry-sanitizer.lcov
# parallel: true

coverage:
needs: rspec
name: Unit tests
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
carryforward: "ruby-2.5,ruby-2.7,ruby-3.0,ruby-3.1,ruby-jruby"
parallel-finished: true
# coverage:
# needs: rspec
# name: Unit tests
# if: ${{ always() }}
# runs-on: ubuntu-latest
# steps:
# - uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# carryforward: "ruby-2.5,ruby-2.7,ruby-3.0,ruby-3.1,ruby-jruby"
# parallel-finished: true

22 changes: 22 additions & 0 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: v1.0
name: Initial Pipeline
agent:
machine:
type: e1-standard-2
os_image: ubuntu2004
blocks:
- name: Tests
task:
prologue:
commands:
- sem-version ruby 2.7 -f
jobs:
- name: RSpec
commands:
- checkout
- bundle install --jobs 4 --retry 3 --no-cache
- bundle exec rspec
- 'curl -L https://coveralls.io/coveralls-linux.tar.gz | tar -xz && ./coveralls --parallel --job-flag rspec'
- ./coveralls --done
secrets:
- name: sentry-sanitizer