Skip to content

Commit 6942ba3

Browse files
committed
Add CI workflow
1 parent 8540ff9 commit 6942ba3

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Continuous Integration
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: main
7+
pull_request:
8+
branches: main
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
ruby: [2.7.0, 3.0.1]
17+
gemfile:
18+
- gemfiles/jekyll_3.7.x.gemfile
19+
- gemfiles/jekyll_4.x.x.gemfile
20+
21+
env:
22+
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
23+
#CC_TEST_REPORTER_ID: 9a84a9f695de3b120b6fcead4e089b45420f7518fb2123dc5424f862d381c4ff
24+
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v4
28+
29+
- name: Set up Ruby
30+
uses: ruby/setup-ruby@v1
31+
with:
32+
ruby-version: ${{ matrix.ruby }}
33+
bundler-cache: true
34+
bundler: 2.2.18
35+
36+
- name: Run tests
37+
run: bundle exec rake spec
38+
39+
- name: Run linting
40+
run: bundle exec rake rubocop

0 commit comments

Comments
 (0)