Skip to content

Ganti kontes tersponsori (April 2022) #194

Ganti kontes tersponsori (April 2022)

Ganti kontes tersponsori (April 2022) #194

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: Run test and rubocop
on:
pull_request:
branches: [production]
jobs:
test:
runs-on: ubuntu-latest
services:
db:
image: postgres:11
env:
POSTGRES_PASSWORD: postgres
ports: ['5432:5432']
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.5.0
- run: |
bundle install --without production development
- env:
RAILS_ENV: test
PGHOST: localhost
PGPASSWORD: postgres
run: |
cp config/database.yml.travis config/database.yml
cp .env.default .env
bundle exec rake db:setup
sudo apt-get install texlive-latex-base
bundle exec rake test
rubocop:
name: rubocop
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Ruby and install gems
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.5.0
- run: |
bundle install --without production development
- name: Run rubocop
run: |
bundle exec rubocop -D -f simple