Skip to content

Commit

Permalink
Use GitHub CI
Browse files Browse the repository at this point in the history
  • Loading branch information
benlovell committed Feb 1, 2024
1 parent 5506a16 commit e840568
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test

on: push

jobs:
test:
name: Run tests

runs-on: ubuntu-latest
env:
RAILS_ENV: test

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler: 1.17.2
bundler-cache: true

- name: Setup Node.js environment
uses: actions/setup-node@v3.5.1
with:
node-version: '14.x'

- name: Install bower
run: npm install -g bower

- name: Install bowndler packages
run: bundle exec bowndler install && bundle exec bowndler update

- name: Run npm install
run: npm install

- name: Run cucumber tests
run: bundle exec cucumber

- name: Run tests
run: bundle exec rspec
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ group :test do
gem 'danger', require: false
gem 'danger-rubocop', require: false
gem 'poltergeist'
gem 'phantomjs', require: 'phantomjs/poltergeist'
gem 'simplecov', require: false
gem 'site_prism'
gem 'timecop'
Expand Down

0 comments on commit e840568

Please sign in to comment.