Skip to content

Commit c46db74

Browse files
Add e2e example spec (#5)
1 parent 3e79aeb commit c46db74

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,28 @@ jobs:
3333
bundle config path vendor/bundle
3434
bundle install --jobs 4 --retry 3
3535
- name: Run RSpec
36-
run: bundle exec rspec
36+
run: bundle exec rspec spec/rspec
37+
e2e:
38+
continue-on-error: true
39+
runs-on: ubuntu-latest
40+
steps:
41+
- name: Check out code
42+
uses: actions/checkout@v1
43+
- name: Setup caching for ruby gems
44+
uses: actions/cache@v1
45+
with:
46+
path: vendor/bundle
47+
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
48+
restore-keys: |
49+
${{ runner.os }}-gems-
50+
- name: Setup Ruby
51+
uses: actions/setup-ruby@v1
52+
with:
53+
ruby-version: 2.7
54+
- name: Install gems
55+
run: |
56+
gem install bundler:2.1.4 --no-doc
57+
bundle config path vendor/bundle
58+
bundle install --jobs 4 --retry 3
59+
- name: Run RSpec
60+
run: '! bundle exec rspec spec/integration'

spec/integration/failing_spec.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# frozen_string_literal: true
2+
3+
RSpec.describe RSpec::Github do
4+
it 'creates an error annotation for failing specs' do
5+
expect(true).to eq false
6+
end
7+
8+
it 'creates a warning annotation for pending specs'
9+
10+
it 'does not create an annotiation for passing specs' do
11+
expect(true).to eq true
12+
end
13+
end

0 commit comments

Comments
 (0)