Skip to content

Use reusable workflows #5

Use reusable workflows

Use reusable workflows #5

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
bundle-audit:
uses: ./.github/workflows/build.yml
with:
description: "Check bundle for known CVEs"
command: "rake bundle:audit"
brakeman:
uses: ./.github/workflows/build.yml
with:
description: "Analyse code for vulnerabilities"
command: "rake brakeman:check"
spec-admin-controllers:
uses: ./.github/workflows/build.yml
with:
description: "Run specs"
command: "rake spec:controllers"
spec_opts: "-f doc --force-color -P spec/controllers/admin/*_spec.rb"
spec-public-controllers:
uses: ./.github/workflows/build.yml
with:
description: "Run specs"
command: "rake spec:controllers"
spec_opts: "-f doc --force-color -P spec/controllers/*_spec.rb"
spec-jobs:
uses: ./.github/workflows/build.yml
with:
description: "Run specs"
command: "rake spec:jobs"
spec_opts: "-f doc --force-color -P spec/jobs/**/*_spec.rb"
spec-mailers:
uses: ./.github/workflows/build.yml
with:
description: "Run specs"
command: "rake spec"
spec_opts: "-f doc --force-color -P spec/mailers/**/*_spec.rb"
spec-models:
uses: ./.github/workflows/build.yml
with:
description: "Run specs"
command: "rake spec"
spec_opts: "-f doc --force-color -P spec/models/**/*_spec.rb"
spec-requests:
uses: ./.github/workflows/build.yml
with:
description: "Run specs"
command: "rake spec"
spec_opts: "-f doc --force-color -P spec/{requests,routing}/**/*_spec.rb"
spec-other:
uses: ./.github/workflows/build.yml
with:
description: "Run specs"
command: "rake spec"
spec_opts: "-f doc --force-color -P spec/{helpers,lib,presenters,tasks,validators,views}/**/*_spec.rb"