Skip to content

Update .simplecov

Update .simplecov #326

Workflow file for this run

name: Test
on:
push:
branches:
- master
pull_request:
pull_request_target:
branches:
- master
env:
DEBIAN_FRONTEND: noninteractive
CIRCLECI: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true
- name: Run standard Ruby linter
run: bundle exec rubocop -P -c ./.rubocop.yml ./
test:
name: Functional testing
env:
DATABASE_URL: postgresql://postgres_user:postgres@localhost:5432/postgres_db
strategy:
matrix:
os-version: [ 'ubuntu-20.04', 'ubuntu-18.04' ]
fail-fast: true
runs-on: ${{ matrix.os-version }}
services:
postgres:
image: postgres # circleci/postgres:alpine-ram
env:
POSTGRES_DB: postgres_db
POSTGRES_USER: postgres_user
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- run: pwd
- name: Checkout code
uses: actions/checkout@v3
- name: Install PostgreSQL client
run: sudo apt-get -yqq install libpq-dev
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 14
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3
with:
path: |
**/node_modules
${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-modules-
- run: yarn install
- name: Disable Linuxbrew
run: |
[[ $(uname -s) == "Linux"* ]] && sudo rm -rf $(which brew)
- name: Run Tests
run: bin/ci-test