Remove old items from pipeline #119
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
name: Ruby | |
on: [push, pull_request] | |
env: | |
POSTGRES_DB: postgres | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: password | |
jobs: | |
test: | |
name: Test | |
environment: alljobs | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:12 | |
ports: ['5439:5439'] | |
env: | |
POSTGRES_PASSWORD: password | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.0.5 | |
bundler-cache: true | |
- name: Install dependencies and adjust database configuration | |
run: | | |
sudo apt-get update && sudo apt-get -yqq install libpq-dev | |
bundle install --jobs 4 --retry 3 | |
- name: Analyze code | |
run: | | |
bundle exec rubocop | |
- name: Run tests | |
env: | |
DISABLE_SPRING: 1 | |
run: | | |
bundle exec rspec --format progress | |
- name: Publish code coverage | |
uses: paambaati/[email protected] | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} |