Skip to content

Commit

Permalink
Add linter
Browse files Browse the repository at this point in the history
  • Loading branch information
soffes committed Jan 3, 2024
1 parent 7cc4ae2 commit 3bee186
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 10 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,28 @@ name: Tests
on: [push]
jobs:
test:
name: Test Swift Package
name: Test
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v1
- uses: actions/setup-ruby@v1
- name: 'Install Dependencies'
run: sudo apt-get install libcurl4-openssl-dev && gem install bundler && bundle install
- name: 'Test'
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Test
run: bundle exec rake test
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Test
run: bundle exec rake standard
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.2.2
5 changes: 4 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ source 'https://rubygems.org'

gemspec

gem 'rake'
gem 'rake', '~> 13.0'
gem 'minitest', '~> 5.0'
gem 'standard', '~> 1.3'
gem 'webmock', '~> 3.19'
4 changes: 3 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ Rake::TestTask.new(:test) do |t|
t.test_files = FileList['test/**/*_test.rb']
end

task :default => :test
require 'standard/rake'

task default: :test
2 changes: 0 additions & 2 deletions hue.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,4 @@ Gem::Specification.new do |spec|
spec.add_dependency 'thor'
spec.add_dependency 'json'
spec.add_dependency 'color_conversion'
spec.add_development_dependency 'minitest', '~> 5.0'
spec.add_development_dependency 'webmock'
end

0 comments on commit 3bee186

Please sign in to comment.