Skip to content

Commit

Permalink
Add CI workflow (#282)
Browse files Browse the repository at this point in the history
* Add CI workflow

* Fix some task names

* Change job name

* Fix rake command

* Further update job name for clarity

* Add color

* Remove tty

* Remove Travis CI config

---------

Co-authored-by: Matthew Thornton <[email protected]>
  • Loading branch information
ThorntonMatthew and ThorntonMatthew authored Sep 27, 2023
1 parent 98b1f9f commit 42a98dd
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 15 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Specs, linting, and security checks

on:
workflow_dispatch:
pull_request:
types: [opened, reopened, synchronize]

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

env:
FORCE_COLOR: "1"

jobs:
rspec_rubocop_bundle-audit:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true

- name: Build dependencies
run: bundle exec rake tests:prepare

- name: Run tests
run: bundle exec rake spec

- name: Run security checks
run: bundle exec rake security

- name: Run linter
run: bundle exec rake rubocop
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

0 comments on commit 42a98dd

Please sign in to comment.