Skip to content
Snippets Groups Projects
Verified Commit 337f0eae authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Add GitHub actions

parent ccbcb8b6
No related branches found
No related tags found
No related merge requests found
---
name: Ruby
on:
push:
tags: ["*"]
branches: ["master"]
pull_request:
branches: ["master"]
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.7', '3.0', '3.1']
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Install rubocop
run: gem install -N rubocop
- name: Rubocop
run: rubocop lib/
- name: Run tests
run: bundle exec rake
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment