Skip to content

Allow Admin to Update Project Description #1359

Allow Admin to Update Project Description

Allow Admin to Update Project Description #1359

Workflow file for this run

name: Run Test Suite on Draft Release Creation, Push, and Pull Request to master
on:
workflow_run:
workflows: [Create Release Draft]
types: [completed]
branches: [master]
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
if: ${{ (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') || github.event_name == 'push' || github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
services:
db:
image: postgres:12
env:
POSTGRES_HOST_AUTH_METHOD: trust
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
ldap:
image: rroemhild/test-openldap
ports:
- 389:10389
steps:
- uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
- uses: actions/setup-node@v1
with:
node-version: '14'
- name: Cache ruby gems
uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Build and run tests
env:
DATABASE_URL: postgres://postgres:@localhost:5432/test
RAILS_ENV: test
# Options below this line are so we can test LDAP
VULCAN_ENABLE_LDAP: true
VULCAN_LDAP_ATTRIBUTE: mail
VULCAN_LDAP_BIND_DN: cn=admin,dc=planetexpress,dc=com
VULCAN_LDAP_BASE: ou=people,dc=planetexpress,dc=com
VULCAN_LDAP_PORT: 389
VULCAN_LDAP_ADMIN_PASS: GoodNewsEveryone
run: |
sudo apt-get -yqq install libpq-dev
echo "gem: --no-document" > ~/.gemrc
gem install bundler --conservative
bundle config path vendor/bundle
bin/setup
bundle exec rails spec
- name: Run Rubocop
run: bundle exec rubocop
- name: Run eslint
run: yarn lint:ci
- name: Upload coverage results
uses: actions/upload-artifact@master
if: always()
with:
name: coverage-report
path: coverage