Skip to content

Commit 8b439f7

Browse files
committed
Introduce GitHub Actions.
1 parent ebe5855 commit 8b439f7

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Tests
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-18.04
13+
strategy:
14+
matrix:
15+
ruby_version: ['3.1', '3.0', '2.7']
16+
rails_version: ['6.0.x', '6.1.x', '7.0.x', 'edge']
17+
name: Ruby ${{ matrix.ruby_version }} on Rails ${{ matrix.rails_version }}
18+
env:
19+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/Gemfile-rails.${{ matrix.rails_version }}
20+
steps:
21+
- name: Install graphviz
22+
run: |
23+
sudo apt-get update -qq
24+
sudo apt-get install -qq graphviz
25+
- uses: actions/checkout@v3
26+
- uses: ruby/setup-ruby@v1
27+
with:
28+
ruby-version: ${{ matrix.ruby_version }}
29+
bundler-cache: true
30+
- name: Run tests
31+
run: |
32+
bundle exec rake test

0 commit comments

Comments
 (0)