Skip to content

Commit 3544b13

Browse files
committed
Setup Github Action
1 parent 417e627 commit 3544b13

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/test.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Test
2+
on:
3+
push:
4+
branches: [master]
5+
pull_request:
6+
branches: [master]
7+
workflow_dispatch:
8+
schedule:
9+
- cron: 13 7 * * 6
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
ruby_version:
17+
- 3.3.8
18+
- 3.4.3
19+
experimental: [false]
20+
include:
21+
- ruby_version: head
22+
experimental: true
23+
name: Ruby ${{ matrix.crystal_version }}
24+
continue-on-error: ${{ matrix.experimental }}
25+
steps:
26+
- name: "[Git] Checkout code"
27+
uses: actions/checkout@v4
28+
29+
- uses: ruby/setup-ruby@v1
30+
with:
31+
ruby-version: ${{ matrix.ruby_version }}
32+
bundler-cache: true
33+
34+
- name: "[Test] Run tests"
35+
run: rake test
36+
37+
- name: "[Test] Smoke tests"
38+
run: |
39+
for example in examples/**/*.rb; do
40+
echo " > Processing $example..."
41+
bundle exec ruby $example
42+
done

0 commit comments

Comments
 (0)