Build #172
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 reports/rubocop.txt || true | |
| bundle exec brakeman -o reports/brakeman.json | |
| bundle exec brakeman_translate_checkstyle_format translate --file="reports/brakeman.json" > reports/brakeman_checkstyle.xml | |
| bundle exec scss-lint --no-color --format=Stats --format=Default --out=reports/scss-lint.txt app/assets/stylesheets/ || true | |
| - name: Test | |
| run: | | |
| CI_REPORTS=reports/test bundle exec rake minitest test | |
| - name: Push | |
| run: | | |
| testspace @.testspace.txt | |
| if: always() |