Sha256: 45c75955c8fe80ef5e4223ac16b93a9a38e110364c59fd620d1319559550c72b

Contents?: true

Size: 1.08 KB

Versions: 8

Compression:

Stored size: 1.08 KB

Contents

name: Tests

on: [push]

jobs:
  test:
    if: "!contains(github.event.head_commit.message, '[skip-tests]')"
    runs-on: ubuntu-latest

    services:
      postgres:
        image: postgres:17
        env:
          POSTGRES_USER: postgres
          POSTGRES_PASSWORD: postgres
        ports:
          - 5432:5432

    steps:
      - name: Checkout code
        uses: actions/checkout@v3

      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 3.3
          bundler-cache: true

      - name: Install dependencies
        working-directory: feature-app
        run: bundle install

      - name: Set up database
        working-directory: feature-app
        run: |
          cp config/database.yml.ci config/database.yml
          RAILS_ENV=test bundle exec rails db:create
          RAILS_ENV=test bundle exec rails db:migrate

      - name: Precompile assets
        working-directory: feature-app
        run: RAILS_ENV=test bundle exec rails assets:precompile

      - name: Run RSpec tests
        working-directory: feature-app
        run: bundle exec rspec

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cm-admin-4.4.6 .github/workflows/test.yml
cm-admin-4.4.1 .github/workflows/test.yml
cm-admin-4.4.0 .github/workflows/test.yml
cm-admin-4.3.0 .github/workflows/test.yml
cm-admin-4.2.1 .github/workflows/test.yml
cm-admin-4.2.0 .github/workflows/test.yml
cm-admin-4.1.2 .github/workflows/test.yml
cm-admin-4.1.1 .github/workflows/test.yml