Skip to content

Commit

Permalink
Updated GitHub Actions for testing purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
bkuhlmann committed Dec 20, 2023
1 parent e8d2b06 commit e67f293
Showing 1 changed file with 1 addition and 40 deletions.
41 changes: 1 addition & 40 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,7 @@ jobs:
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

Expand All @@ -40,26 +19,8 @@ jobs:
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: |
git fetch --depth=1 --tags
bin/hanami assets compile
bundle exec rake
- name: SimpleCov Archive
uses: actions/upload-artifact@v3
with:
name: coverage
path: coverage

0 comments on commit e67f293

Please sign in to comment.