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@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - name: Install Ruby and gems uses: ruby/setup-ruby@8a45918450651f5e4784b6031db26f4b9f76b251 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@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - name: Install Ruby and gems uses: ruby/setup-ruby@8a45918450651f5e4784b6031db26f4b9f76b251 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@bd6b4b6205c4dbad673328db7b31b7fab9e241c0 with: python-version: "3.10" - name: Run pre-commit uses: pre-commit/action@5f528da5c95691c4cf42ff76a4d10854b62cbb82