Skip to content

Commit b75dac5

Browse files
bivanalharcysjonathan
authored andcommitted
chore(test): add pipeline to test in github
1 parent ef20a90 commit b75dac5

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.github/workflows/ruby.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7+
8+
name: Ruby
9+
10+
on:
11+
push:
12+
branches: ['master']
13+
pull_request:
14+
branches: ['master']
15+
schedule:
16+
- cron: '0 0 * * 0'
17+
18+
permissions:
19+
contents: read
20+
21+
jobs:
22+
test:
23+
runs-on: ubuntu-latest
24+
strategy:
25+
matrix:
26+
ruby-version: ['3.0', '3.1']
27+
activerecord: ['6.0', '6.1', '7.0', '7.1']
28+
env:
29+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_${{ matrix.activerecord }}.gemfile
30+
steps:
31+
- uses: actions/checkout@v3
32+
- name: Set up Ruby
33+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
34+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
35+
# uses: ruby/setup-ruby@v1
36+
uses: ruby/setup-ruby@v1
37+
with:
38+
ruby-version: ${{ matrix.ruby-version }}
39+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
40+
- name: Run tests
41+
run: bundle exec rake
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
//= link_tree ../images
2+
//= link_directory ../javascripts .js
3+
//= link_directory ../stylesheets .css

0 commit comments

Comments
 (0)