name: "CI" on: pull_request: push: branches: [ main ] jobs: test: runs-on: ubuntu-latest timeout-minutes: 30 permissions: contents: read checks: write env: RAILS_ENV: test CRONTOGO_ORGANIZATION_ID: "fake-crontogo-organization-id" CRONTOGO_API_KEY: "fake-crontogo-api-key" strategy: fail-fast: true matrix: ruby: ["3.0", "3.1", "3.2"] steps: - name: Checkout code uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 - name: Install Ruby and gems uses: ruby/setup-ruby@6bd3d993c602f6b675728ebaecb2b569ff86e99b with: bundler-cache: true ruby-version: ${{ matrix.ruby }} - name: Run RSpec Tests timeout-minutes: 20 run: bundle exec rspec -f doc lint: runs-on: ubuntu-latest timeout-minutes: 20 permissions: contents: read steps: - name: Checkout code uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 - name: Install Ruby and gems uses: ruby/setup-ruby@6bd3d993c602f6b675728ebaecb2b569ff86e99b with: bundler-cache: true ruby-version: "3.2" - name: Bundle Audit Check run: bundle exec bundle-audit update && bundle exec bundle-audit check - name: Setup Python uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d with: python-version: "3.10" - name: Run pre-commit uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd