Skip to content

Chore/remove dummy app #318

Chore/remove dummy app

Chore/remove dummy app #318

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
rspec:
runs-on: ubuntu-latest
name: RSpec tests
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
- name: Install gems
run: |
gem install bundler
bundle install --jobs 4 --retry 3
- name: Run RSpec
env:
SIMPLECOV: '0'
run: make rspec
quality_checks:
runs-on: ubuntu-latest
name: Code quality, test coverage and documentation checks
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
- name: Install gems
run: |
gem install bundler
bundle install --jobs 4 --retry 3
- name: Run Rubocop
run: make ruby-lint
- name: Download CodeClimate reporter
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
- name: Run RSpec
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
SIMPLECOV: '1'
run: make rspec
- name: Report coverage to CodeClimate
continue-on-error: true
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
GIT_BRANCH: ${{ steps.extract_branch.outputs.branch }}
GIT_COMMIT_SHA: ${{ github.sha }}
run: ./cc-test-reporter after-build -t simplecov
- name: Run Guide Nanoc Check
run: make nanoc-check-all
- name: Run Guide Haml Lint
run: make haml-lint