Skip to content

Commit 174a329

Browse files
authored
chore(ci): add workflows (#1)
1 parent 06c3f50 commit 174a329

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.github/workflows/validate.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: validate
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
style:
10+
name: code style
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: ruby/setup-ruby@v1
15+
with:
16+
ruby-version: 2.7
17+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
18+
- run: bundle exec rbprettier --check .
19+
20+
test:
21+
name: test
22+
runs-on: ubuntu-latest
23+
strategy:
24+
matrix:
25+
ruby: ["2.4", "2.5", "2.6", "2.7"]
26+
steps:
27+
- uses: actions/checkout@v2
28+
- uses: ruby/setup-ruby@v1
29+
with:
30+
ruby-version: ${{ matrix.ruby }}
31+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
32+
- run: bundle exec rake

.prettierignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/.bundle/
2+
/.yardoc
3+
/_yardoc/
4+
/coverage/
5+
/pkg/
6+
/spec/reports/
7+
/tmp/
8+
/vendor/
9+
Gemfile.lock

0 commit comments

Comments
 (0)