--- name: CI on: push: branches: - master pull_request: jobs: lint: runs-on: ubuntu-latest strategy: matrix: ruby: - 2.7 - 3.1 steps: - name: Checkout uses: actions/checkout@v3 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} bundler-cache: true - name: Run Rubocop run: bundle exec rubocop test: runs-on: ubuntu-latest strategy: matrix: ruby: - 2.7 - 3.1 env: BOT_API_ENV: test BOT_API_TOKEN: ${{ secrets.BOT_API_TOKEN }} steps: - name: Checkout uses: actions/checkout@v3 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} bundler-cache: true - name: Run specs run: bundle exec rspec