Skip to content

Commit 5e405a3

Browse files
author
Yunwei Wang
committed
add github workflow
1 parent c6337d2 commit 5e405a3

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/ruby.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Ruby
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
ruby-version: ['3.3.6']
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up Ruby
20+
uses: ruby/setup-ruby@v1
21+
with:
22+
ruby-version: ${{ matrix.ruby-version }}
23+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
24+
25+
test:
26+
needs: build
27+
runs-on: ubuntu-latest
28+
strategy:
29+
matrix:
30+
ruby-version: ['3.3.6']
31+
steps:
32+
- uses: actions/checkout@v2
33+
- name: Set up Ruby
34+
uses: ruby/setup-ruby@v1
35+
with:
36+
ruby-version: ${{ matrix.ruby-version }}
37+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
38+
- name: Run tests
39+
run: bundle exec rake

0 commit comments

Comments
 (0)