From e840568e87ecaee4b0b9617231f4e1e6e346c4a5 Mon Sep 17 00:00:00 2001 From: Ben Lovell Date: Thu, 1 Feb 2024 19:46:14 +0000 Subject: [PATCH] Use GitHub CI --- .github/workflows/test.yml | 41 ++++++++++++++++++++++++++++++++++++++ Gemfile | 1 + 2 files changed, 42 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..83996b29 --- /dev/null +++ b/.github/workflows/test.yml @@ -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 diff --git a/Gemfile b/Gemfile index bede19e3..fb567d53 100644 --- a/Gemfile +++ b/Gemfile @@ -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'