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 - run: sh bin/setup
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.2'
29 bundler-cache: true
30 - name: Running style checks…
31 run: sh bin/style
32 audit:
33 runs-on: ubuntu-latest
34 steps:
35 - uses: actions/checkout@v2
36 - uses: ruby/setup-ruby@v1
37 with:
38 ruby-version: '3.2'
39 bundler-cache: true
40 - name: Running audit…
41 run: sh bin/audit