Sha256: 6b0c7548465b7a1e40d112814fccf6770ecb1744d40e0946a3f4aaf4347c353a

Contents?: true

Size: 921 Bytes

Versions: 4

Compression:

Stored size: 921 Bytes

Contents

---
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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
telegram-bot-ruby-1.0.0.rc1 .github/workflows/ci.yml
telegram-bot-ruby-1.0.0.pre .github/workflows/ci.yml
telegram-bot-ruby-0.23.0 .github/workflows/ci.yml
telegram-bot-ruby-0.22.0 .github/workflows/ci.yml