-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (37 loc) · 976 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:
branches: [ main ]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.1', '3.2']
steps:
- uses: actions/checkout@v4
name: Checkout repository
- uses: ruby/setup-ruby@v1
name: Setup ruby
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: yarn
cache-dependency-path: spec/dummy/yarn.lock
- run: yarn install --frozen-lockfile
name: Install NPM packages
working-directory: ./spec/dummy
- run: bundle exec rake assets:precompile
name: Compile assets
working-directory: ./spec/dummy
- run: bundle exec rspec
name: Run specs
- uses: paambaati/codeclimate-action@v8.0.0
name: Publish code coverage