Files
kamal/.github/workflows/ci.yml
David Heinemeier Hansson 787ef96639 Don't run actions twice on PRs
2023-05-02 14:41:18 +02:00

35 lines
768 B
YAML

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
tests:
strategy:
matrix:
ruby-version:
- "2.7"
- "3.1"
- "3.2"
gemfile:
- Gemfile
- gemfiles/rails_edge.gemfile
continue-on-error: [false]
name: ${{ format('Tests (Ruby {0})', matrix.ruby-version) }}
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.continue-on-error }}
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v2
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run tests
run: bin/test