main
1name: ci
2on:
3 push:
4 branches: [main]
5 pull_request:
6 branches: [main]
7jobs:
8 test:
9 runs-on: ubuntu-latest
10 strategy:
11 matrix:
12 ruby-version: ['3.2', '3.3', '3.4']
13 steps:
14 - uses: actions/checkout@v2
15 - name: Set up Ruby
16 uses: ruby/setup-ruby@v1
17 with:
18 ruby-version: ${{ matrix.ruby-version }}
19 bundler-cache: true
20 - name: Running tests…
21 run: sh bin/test
22 style:
23 runs-on: ubuntu-latest
24 steps:
25 - uses: actions/checkout@v2
26 - uses: ruby/setup-ruby@v1
27 with:
28 ruby-version: '3.4'
29 bundler-cache: true
30 - name: Running style checks…
31 run: sh bin/style