-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jonathan Tapia
committed
Jul 8, 2023
1 parent
78f07b0
commit 9a114dd
Showing
11 changed files
with
155 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,52 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
# Required for feature specs. | ||
browser-tools: circleci/[email protected] | ||
|
||
# Always take the latest version of the orb, this allows us to | ||
# run specs against Solidus supported versions only without the need | ||
# to change this configuration every time a Solidus version is released | ||
# or goes EOL. | ||
solidusio_extensions: solidusio/extensions@volatile | ||
|
||
jobs: | ||
run-specs-with-sqlite: | ||
executor: | ||
name: solidusio_extensions/sqlite | ||
ruby_version: "3.0" | ||
steps: | ||
- browser-tools/install-chrome | ||
- solidusio_extensions/run-tests | ||
run-specs-with-postgres: | ||
executor: solidusio_extensions/postgres | ||
executor: | ||
name: solidusio_extensions/postgres | ||
ruby_version: "3.0" | ||
steps: | ||
- browser-tools/install-chrome | ||
- solidusio_extensions/run-tests | ||
run-specs-with-mysql: | ||
executor: solidusio_extensions/mysql | ||
executor: | ||
name: solidusio_extensions/mysql | ||
ruby_version: "3.0" | ||
steps: | ||
- browser-tools/install-chrome | ||
- solidusio_extensions/run-tests | ||
lint-code: | ||
executor: | ||
name: solidusio_extensions/sqlite-memory | ||
ruby_version: "3.0" | ||
steps: | ||
- solidusio_extensions/lint-code | ||
|
||
workflows: | ||
"Run specs on supported Solidus versions": | ||
jobs: | ||
- run-specs-with-sqlite | ||
- run-specs-with-postgres | ||
- run-specs-with-mysql | ||
- lint-code | ||
|
||
"Weekly run specs against master": | ||
triggers: | ||
- schedule: | ||
|
@@ -31,5 +56,6 @@ workflows: | |
only: | ||
- master | ||
jobs: | ||
- run-specs-with-sqlite | ||
- run-specs-with-postgres | ||
- run-specs-with-mysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
_extends: .github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
inherit_from: .rubocop_todo.yml | ||
|
||
require: | ||
- solidus_dev_support/rubocop | ||
|
||
AllCops: | ||
NewCops: disable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2022-10-13 08:30:45 UTC using RuboCop version 1.36.0. | ||
# The point is for the user to remove these configuration records | ||
# one by one as the offenses are removed from the code base. | ||
# Note that changes in the inspected code, or installation of new | ||
# versions of RuboCop, may require this file to be generated again. | ||
|
||
# Offense count: 1 | ||
# This cop supports safe autocorrection (--autocorrect). | ||
# Configuration parameters: Include. | ||
# Include: **/*.gemspec | ||
Gemspec/RequireMFA: | ||
Exclude: | ||
- 'solidus_static_content.gemspec' | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: AllowComments, AllowEmptyLambdas. | ||
Lint/EmptyBlock: | ||
Exclude: | ||
- 'lib/solidus_static_content/factories.rb' | ||
|
||
# Offense count: 1 | ||
# This cop supports unsafe autocorrection (--autocorrect-all). | ||
Lint/NonDeterministicRequireOrder: | ||
Exclude: | ||
- 'spec/spec_helper.rb' | ||
|
||
# Offense count: 1 | ||
# This cop supports unsafe autocorrection (--autocorrect-all). | ||
Lint/OrAssignmentToConstant: | ||
Exclude: | ||
- 'app/models/solidus_static_content/configuration.rb' | ||
|
||
# Offense count: 1 | ||
# This cop supports safe autocorrection (--autocorrect). | ||
Lint/RedundantCopDisableDirective: | ||
Exclude: | ||
- 'bin/rails' | ||
|
||
# Offense count: 1 | ||
RSpec/AnyInstance: | ||
Exclude: | ||
- 'spec/features/admin/homepage_spec.rb' | ||
|
||
# Offense count: 3 | ||
# Configuration parameters: Prefixes, AllowedPatterns. | ||
# Prefixes: when, with, without | ||
RSpec/ContextWording: | ||
Exclude: | ||
- 'spec/features/admin/homepage_spec.rb' | ||
|
||
# Offense count: 2 | ||
RSpec/MultipleExpectations: | ||
Max: 2 | ||
|
||
# Offense count: 1 | ||
# Style/ClassVars: | ||
# Exclude: | ||
# - 'app/controllers/spree/admin/reports_controller.rb' | ||
|
||
# Offense count: 1 | ||
# This cop supports safe autocorrection (--autocorrect). | ||
# Configuration parameters: AllowedVars. | ||
Style/FetchEnvVar: | ||
Exclude: | ||
- 'Gemfile' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'solidus_core' | ||
require 'solidus_support' | ||
require 'deface' | ||
|
||
require 'solidus_static_content/version' | ||
require 'solidus_static_content/route_matcher' | ||
require 'solidus_static_content/engine' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters