Sha256: 8bd588d44caec10765c8b6253031b7ce8f75a650e4d8ebfab171800112dc50ce

Contents?: true

Size: 1.39 KB

Versions: 9

Compression:

Stored size: 1.39 KB

Contents

name: Continuous Integration

on: [push, pull_request]

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    env:
      HANAMI_ENV: test
      DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres

    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: Chromium Setup
        uses: nanasess/setup-chromedriver@v2

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

      - name: Checkout
        uses: actions/checkout@v3

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

      - name: Node Setup
        uses: actions/setup-node@v2
        with:
          cache: npm

      - name: Packages Install
        run: npm install

      - name: Database Setup
        run: |
          bin/hanami db create
          bin/hanami db migrate

      - name: Build
        run: |
          bin/hanami assets compile
          bundle exec rake

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hanamismith-0.31.0 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb
hanamismith-0.30.0 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb
hanamismith-0.29.0 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb
hanamismith-0.28.1 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb
hanamismith-0.28.0 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb
hanamismith-0.27.0 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb
hanamismith-0.26.0 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb
hanamismith-0.25.0 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb
hanamismith-0.24.0 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb