Skip to content

Commit 9eef281

Browse files
committed
Add GitHub Actions CI workflow
1 parent 49bff3b commit 9eef281

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
rubocop:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v6
14+
- uses: ruby/setup-ruby@v1
15+
with:
16+
ruby-version: '.ruby-version'
17+
bundler-cache: true
18+
- run: bundle exec rubocop --parallel
19+
20+
rspec:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v6
24+
- uses: ruby/setup-ruby@v1
25+
with:
26+
ruby-version: '.ruby-version'
27+
bundler-cache: true
28+
- run: bundle exec rspec

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# S2 Ruby
22

3+
[![Tests](https://github.com/stekker/s2-ruby/actions/workflows/ci.yml/badge.svg)](https://github.com/stekker/s2-ruby/actions/workflows/ci.yml)
34
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE.txt)
45
[![Ruby](https://img.shields.io/badge/Ruby-3.3+-red.svg)](s2-ruby.gemspec)
56

0 commit comments

Comments
 (0)