-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 949 Bytes
/
ci.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
39
40
41
name: "CI"
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
run_specs:
name: Rspec
runs-on: ubuntu-latest
timeout-minutes: 10
env:
CI: true
RAILS_ENV: test
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Ruby and gems
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Run specs
run: bundle exec rspec --format documentation --format RspecJunitFormatter --out tmp/rspec.xml
- name: Publish Rspec Test Results
uses: mikepenz/action-junit-report@v4
if: success() || failure()
with:
check_name: Rspec Test Results
report_paths: tmp/rspec.xml
detailed_summary: true
env:
GITHUB_STEP_SUMMARY: true