Skip to content

Add button_to execute :read task #62

Add button_to execute :read task

Add button_to execute :read task #62

Workflow file for this run

# .github/workflows/ci.yml
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test-rails-current:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:11.6-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v1
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.1.1"
- name: Install PostgreSQL 11 client
run: |
sudo apt-get -yqq install libpq-dev
- name: Build App
env:
RAILS_ENV: test
run: |
gem install bundler:2.2.29
bundle install --jobs 4 --retry 3
yarn install
rake db:setup
- name: Run tests
run: |
bundle exec rspec spec