Sha256: ab4f20943a2d5b0d2c58d28c2af928982b16a91751935a5c19dd6e8351e973b7

Contents?: true

Size: 1.49 KB

Versions: 8

Compression:

Stored size: 1.49 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 prepare

      - 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

8 entries across 8 versions & 1 rubygems

Version Path
hanamismith-1.3.0 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb
hanamismith-1.2.0 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb
hanamismith-1.1.0 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb
hanamismith-1.0.0 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb
hanamismith-0.50.0 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb
hanamismith-0.49.1 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb
hanamismith-0.49.0 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb
hanamismith-0.48.0 lib/hanamismith/templates/%project_name%/.github/workflows/ci.yml.erb