Skip to content

Revert "Do not hardcode RANCHER value. (#214)" #399

Revert "Do not hardcode RANCHER value. (#214)"

Revert "Do not hardcode RANCHER value. (#214)" #399

Workflow file for this run

name: "lint-test"
on:
push:
branches-ignore:
- main
workflow_dispatch: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
ruby: [ "3.4" ]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run RuboCop
run: bundle exec rubocop
test:
needs: lint
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
ruby: ["3.4"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Precompile assets
run: bin/rails assets:precompile
- name: Run rspec tests
run: bundle exec rspec spec
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2
continue-on-error: true
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./coverage/lcov/app.lcov