Skip to content

Commit 2acd5ed

Browse files
Setup GitHub CI
1 parent c49e696 commit 2acd5ed

File tree

1 file changed

+18
-24
lines changed

1 file changed

+18
-24
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,21 @@
1-
# name: Ruby
1+
name: Ruby
22

3-
# on:
4-
# push:
5-
# branches:
6-
# - main
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
76

8-
# pull_request:
7+
permissions:
8+
contents: read
99

10-
# jobs:
11-
# build:
12-
# runs-on: ubuntu-latest
13-
# name: Ruby ${{ matrix.ruby }}
14-
# strategy:
15-
# matrix:
16-
# ruby:
17-
# - '3.0.6'
18-
19-
# steps:
20-
# - uses: actions/checkout@v2
21-
# - name: Set up Ruby
22-
# uses: ruby/setup-ruby@v1
23-
# with:
24-
# ruby-version: ${{ matrix.ruby }}
25-
# bundler-cache: true
26-
# - name: Run the default task
27-
# run: bundle exec rake
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Set up Ruby
16+
uses: ruby/setup-ruby@v1
17+
with:
18+
ruby-version: 3.0.6
19+
bundler-cache: true
20+
- name: Run tests
21+
run: bundle exec rake test

0 commit comments

Comments
 (0)