Merge pull request #2727 from hennevogel/feature/codacy
Add codacy coverage reporter to CI cycle
This commit is contained in:
commit
a08862a134
2 changed files with 18 additions and 22 deletions
21
.github/workflows/linters.yml
vendored
21
.github/workflows/linters.yml
vendored
|
|
@ -1,21 +0,0 @@
|
||||||
name: Linters
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ master ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ master ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
rubocop:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
OSEM_RUBY_VERSION: 2.5.8
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: ruby/setup-ruby@v1
|
|
||||||
with:
|
|
||||||
ruby-version: 2.5
|
|
||||||
bundler-cache: true
|
|
||||||
- run: bundle exec rubocop
|
|
||||||
- run: bundle exec haml-lint app/views
|
|
||||||
19
.github/workflows/spec.yml
vendored
19
.github/workflows/spec.yml
vendored
|
|
@ -8,7 +8,20 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
linters:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
OSEM_RUBY_VERSION: 2.5.8
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: ruby/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: 2.5
|
||||||
|
bundler-cache: true
|
||||||
|
- run: bundle exec rubocop
|
||||||
|
- run: bundle exec haml-lint app/views
|
||||||
spec:
|
spec:
|
||||||
|
needs: linters
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: spec
|
name: spec
|
||||||
env:
|
env:
|
||||||
|
|
@ -31,4 +44,8 @@ jobs:
|
||||||
bundle exec bin/rails webdrivers:chromedriver:update
|
bundle exec bin/rails webdrivers:chromedriver:update
|
||||||
- name: spec/${{ matrix.suite }}
|
- name: spec/${{ matrix.suite }}
|
||||||
run: bundle exec rake spec:${{ matrix.suite }}
|
run: bundle exec rake spec:${{ matrix.suite }}
|
||||||
|
- name: coverage upload ${{ matrix.suite }}
|
||||||
|
uses: codacy/codacy-coverage-reporter-action@master
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
|
with:
|
||||||
|
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue