name: test
on: push

jobs:
  test:
    name: test
    runs-on: ubuntu-latest

    steps:
      - name: code
        uses: actions/checkout@v2

      - name: ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 2.7
          bundler-cache: true

      - name: db
        run: bundle exec rake db:create db:migrate --trace

      - name: results
        run: bundle exec rake test

---
name: test
'on': [push, pull_request, workflow_dispatch]

jobs:
  test:
    name: test
    runs-on: ubuntu-latest

    steps:
      - name: code
        uses: actions/checkout@v2

      - name: ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 2.7
          bundler-cache: true

      - name: db
        run: bundle exec rake db:create db:migrate --trace

      - name: results
        run: bundle exec rake test

Add PRs and workflows to triggers
Add PRs and workflows to triggers
