-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (36 loc) · 936 Bytes
/
rspec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: RSpec
on:
push:
branches:
- main
pull_request:
jobs:
rspec:
runs-on: ubuntu-latest
name: RSpec
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
bundler-cache: true
- name: Install dependencies
run: bundle install
- name: Run tests
env:
RAILS_ENV: test
run: bundle exec rspec --format documentation
- name: Upload spec log
uses: actions/upload-artifact@master
if: always()
with:
name: spec-${{ github.run_id }}-ubuntu-latest-ruby-3.2.log
path: spec.log
- name: Upload coverage results
uses: actions/upload-artifact@master
if: always()
with:
name: coverage-report-${{ github.run_id }}-ubuntu-latest-ruby-3.2
path: coverage