Sha256: f804b25742d50b8e2954a1d358da8b722c34ba49d92e6cebb3e1ff5a35515ec8

Contents?: true

Size: 1.54 KB

Versions: 6

Compression:

Stored size: 1.54 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: System Update
        run: |
          sudo apt-get update
          sudo apt-get install --no-install-recommends -y curl libjemalloc2

      - 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@v4

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

      - name: Node Setup
        uses: actions/setup-node@v4
        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 settings.build_simple_cov %>
      - name: SimpleCov Archive
        uses: actions/upload-artifact@v4
        with:
          name: coverage
          path: coverage
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hanamismith-0.47.0 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb
hanamismith-0.46.0 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb
hanamismith-0.45.0 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb
hanamismith-0.44.0 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb
hanamismith-0.43.0 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb
hanamismith-0.42.0 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb