-
-
Notifications
You must be signed in to change notification settings - Fork 12
29 lines (26 loc) · 895 Bytes
/
ruby.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
name: Ruby
on: push
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['3.0', '3.1', '3.2', '3.3']
steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # 'bundle install' and cache gems
- name: Run tests
# Exclude acceptance specs as github action fails due to:
# It is a security vulnerability to allow your home directory to be world-writable, and bundler cannot continue.
run: bundle exec rspec --exclude-pattern "spec/acceptance/**/*_spec.rb"
- name: Run linter
run: make lint
- name: Report coverage
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage/coverage.xml