Sha256: f235947a0760dbc21c189d3461802518a8e060cdc9653a0e285da5d3f95dd283

Contents?: true

Size: 1.19 KB

Versions: 8

Compression:

Stored size: 1.19 KB

Contents

name: Continuous Integration

on: [push, pull_request]

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest

    services:
      postgres:
        image: postgres:latest
        env:
          POSTGRES_PASSWORD: postgres
        ports:
          - 5432:5432
        options: >-
          --health-cmd pg_isready
          --health-interval 10s
          --health-timeout 5s
          --health-retries 5

    steps:
      - name: Setup Chrome Driver
        uses: nanasess/setup-chromedriver@v2

      - name: Start Chrome Driver
        run: |
          export DISPLAY=:99
          chromedriver --url-base=/wd/hub &

      - name: Checkout
        uses: actions/checkout@v3

      - name: Setup Ruby
        uses: ruby/setup-ruby@v1
        with:
          bundler-cache: true

      - name: Rake
        env:
          HANAMI_ENV: test
          DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
        run: |
          bin/hanami db create
          bin/hanami db migrate
          bundle exec rake

<% if configuration.build_simple_cov %>
      - name: Archive SimpleCov Report
        uses: actions/upload-artifact@v3
        with:
          name: coverage
          path: coverage
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hanamismith-0.23.0 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb
hanamismith-0.22.1 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb
hanamismith-0.22.0 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb
hanamismith-0.21.0 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb
hanamismith-0.20.0 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb
hanamismith-0.19.0 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb
hanamismith-0.18.0 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb
hanamismith-0.17.1 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb