Skip to content

Add valid_email & confirmed_at to /me-only attributes #2416

Add valid_email & confirmed_at to /me-only attributes

Add valid_email & confirmed_at to /me-only attributes #2416

Workflow file for this run

name: Zooni CI
on:
pull_request:
push: { branches: master }
env:
DATABASE_URL: postgresql://panoptes:password@localhost/gh_ci_test
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
services:
postgres:
image: postgres:11-alpine
env:
POSTGRES_USER: panoptes
POSTGRES_PASSWORD: password
ports: ['5432:5432']
options:
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
continue-on-error: true
strategy:
matrix:
gemfile:
- Gemfile
# - Gemfile.next
ruby:
- 2.7
spec-commands:
- 'spec/controllers/api/v1/[a-m]*.rb spec/counters spec/operations spec/serializers spec/workers'
- 'spec/controllers/api/v1/[n-s]*.rb'
- 'spec/controllers/api/v1/[t-z]*.rb spec/controllers/**.rb spec/lib spec/requests'
- 'spec/controllers/api/*.rb spec/mailers spec/middleware spec/models spec/policies spec/routes spec/services'
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v3
- name: Check specs
run: |
mkdir -p tmp
find spec -maxdepth 1 -type d | grep spec/ > tmp/curr_spec_dirs.txt
if grep -Fxvc -f spec/known_dirs.txt tmp/curr_spec_dirs.txt; then echo 'Detected unkown Spec directories, check the spec/known_dirs.txt!'; exit 1; fi
- name: Check for focus specs
run: ./scripts/no_focus.sh
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Install PG Client
run: |
sudo apt-get -yqq install libpq-dev
- name: Setup DB and configs
run: |
RAILS_ENV=test bundle exec rake db:setup
RAILS_ENV=test bundle exec rake configure:local
- name: Run tests
run: bundle exec rspec ${{ matrix.spec-commands }}
env:
RAILS_ENV: test
DISABLE_TEST_LOGGING: 1
DEPRECATION_WARNINGS_SILENCED: 1