Skip to content

Remove org scoped messengers creds from env vars #3640

Remove org scoped messengers creds from env vars

Remove org scoped messengers creds from env vars #3640

Workflow file for this run

name: CI
on: pull_request
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
RUBYOPT: "-W:no-deprecated"
RAILS_ENV: test
DATABASE_URL: postgres://postgres:postgres@localhost:5432
services:
postgres:
image: postgres:14.3
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: app_test
ports: [ "5432:5432" ]
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Read .tool-versions
uses: marocchino/tool-versions-action@v1
id: versions
- name: Use Node.js ${{ steps.versions.outputs.nodejs}}
uses: actions/setup-node@v3
with:
node-version: ${{ steps.versions.outputs.nodejs}}
- name: Install ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ steps.versions.outputs.ruby}}
bundler-cache: true
- name: Cache NPM dependencies
uses: actions/cache@v3.2.6
with:
path: node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-npm-
- name: Install NPM dependencies
run: npm install
- name: Run prettier
run: npm run prettier
- name: Build JS
run: npm run build:js
- name: Build CSS
run: npm run build:css
- name: Run database migrations
run: bin/rails db:migrate
- name: Run rubocop
run: bundle exec rubocop
- name: Run tests
run: bin/rake spec