diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 47e4d91..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,28 +0,0 @@ -version: 2.1 - -orbs: - ruby: circleci/ruby@1.0 - -jobs: - build: - docker: - - image: circleci/ruby:2.7.1 - - environment: - BUNDLE_JOBS: "3" - BUNDLE_RETRY: "3" - - steps: - - checkout - - - ruby/install-deps # use the ruby orb to install & cache dependencies - - - ruby/rspec-test # use the rubo orb to run specs - - -workflows: - version: 2 - - commit: - jobs: - - build diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml new file mode 100644 index 0000000..8d13a07 --- /dev/null +++ b/.github/workflows/build-and-test.yml @@ -0,0 +1,19 @@ +on: + - push + +jobs: + test: + runs-on: ubicloud + + steps: + - uses: actions/checkout@v4 + - name: Set up Ruby 3.3.0 + uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1 + with: + ruby-version: 3.3.0 + + - name: Install dependencies + run: bundle install + + - name: Run tests + run: bundle exec rspec diff --git a/.ruby-version b/.ruby-version index 1f7da99..15a2799 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.7.7 +3.3.0 diff --git a/CampMinder.gemspec b/CampMinder.gemspec index 4c62179..5075064 100644 --- a/CampMinder.gemspec +++ b/CampMinder.gemspec @@ -34,6 +34,5 @@ Gem::Specification.new do |spec| spec.add_dependency "active_model_serializers", "= 0.9.2" spec.add_dependency "loofah", "~> 2.3" spec.add_dependency "nokogiri", "~> 1.6" - spec.add_dependency "sprockets", "~> 3.7.2" # for security - https://blog.heroku.com/rails-asset-pipeline-vulnerability spec.add_dependency "virtus", "~> 1.0" end diff --git a/Gemfile.lock b/Gemfile.lock index c22a941..e4370a1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -216,4 +216,4 @@ DEPENDENCIES webmock BUNDLED WITH - 2.1.4 + 2.4.3