summaryrefslogtreecommitdiff
path: root/.github/workflows/main.yml
blob: 3052995622b134cef567ee692e53b8c5161147ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: ci
on:
  push:
    branches:
      - main
  pull_request:
  workflow_dispatch:
jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: 3.0.3
        bundler-cache: true
    - run: ./script/setup
    - run: ./script/lint
  test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby:
          - 3.0.3
    steps:
    - uses: actions/checkout@v2
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
        bundler-cache: true
    - run: ./script/setup
    - run: ./script/test