ISSUE-21: Index all pages (not just blog pages) #64
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .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 | |