Skip to content

Build

Build #157

Workflow file for this run

name: Build
on:
push:
schedule:
- cron: '0 1 * * 0'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: ruby/setup-ruby@v1
with:
ruby-version: '2.3'
- uses: actions/checkout@v4
- uses: testspace-com/setup-testspace@v1
with:
domain: samples
- uses: actions/cache@v4
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Install
run: |
bundle install --deployment --retry=3 --jobs=4
RAILS_ENV=test bundle exec rake db:migrate
- name: Analyze
run: |
bundle exec rubocop --format emacs --out tmp/rubocop.txt || true
bundle exec brakeman -o tmp/brakeman.json
bundle exec brakeman_translate_checkstyle_format translate --file="tmp/brakeman.json" > tmp/brakeman_checkstyle.xml
- name: Test
run: |
CI_REPORTS=spec/reports RAILS_ENV=test COVERAGE=true xvfb-run --server-args="-screen 0 1024x768x24" bundle exec rake ci:setup:rspec spec
- name: Push
run: |
testspace @.testspace.txt
if: always()