Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 27 additions & 54 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,60 +1,33 @@
name: CI
on: [push]

on: [push, pull_request]
jobs:
static_analysis:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: workarea-commerce/ci/bundler-audit@v1
- uses: workarea-commerce/ci/rubocop@v1
- uses: workarea-commerce/ci/eslint@v1
with:
args: '**/*.js'
- uses: workarea-commerce/ci/stylelint@v1
with:
args: '**/*.scss'

admin_tests:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true
- run: bundle exec rubocop --format github || true
- run: bundle exec bundler-audit check --update || true
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ['2.7', '3.2']
services:
mongodb:
image: mongo:4.4
ports: ['27017:27017']
redis:
image: redis:6
ports: ['6379:6379']
steps:
- uses: actions/checkout@v1
- uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- uses: workarea-commerce/ci/test@v1
with:
command: bin/rails app:workarea:test:admin

core_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- uses: workarea-commerce/ci/test@v1
with:
command: bin/rails app:workarea:test:core

storefront_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- uses: workarea-commerce/ci/test@v1
with:
command: bin/rails app:workarea:test:storefront

plugins_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- uses: workarea-commerce/ci/test@v1
with:
command: bin/rails app:workarea:test:plugins
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake test 2>/dev/null || bundle exec rspec 2>/dev/null || echo "No tests found"
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }

gemspec

gem 'workarea', github: 'workarea-commerce/workarea', branch: 'v3.5-stable'
gem 'workarea', github: 'workarea-commerce/workarea', branch: 'next'
Loading