mirror of
https://github.com/cmur2/dyndnsd.git
synced 2024-12-21 14:54:22 +01:00
cn
dc325d686e
- this adds a new workflow for Github Actions that mirrors what the existing Travis CI workflow tests - Travis CI might become unfriendly to opensource soonish so migration might be necessary
32 lines
789 B
Ruby
32 lines
789 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'bundler/gem_tasks'
|
|
require 'rspec/core/rake_task'
|
|
require 'rubocop/rake_task'
|
|
require 'bundler/audit/task'
|
|
|
|
RSpec::Core::RakeTask.new(:spec)
|
|
RuboCop::RakeTask.new
|
|
Bundler::Audit::Task.new
|
|
|
|
desc 'Run experimental solargraph type checker'
|
|
task :solargraph do
|
|
sh 'solargraph typecheck'
|
|
end
|
|
|
|
namespace :solargraph do
|
|
desc 'Should be run by developer once to prepare initial solargraph usage (fill caches etc.)'
|
|
task :init do
|
|
sh 'solargraph download-core'
|
|
end
|
|
end
|
|
|
|
desc 'Run hadolint for Dockerfile linting'
|
|
task :hadolint do
|
|
sh 'docker run --rm -i hadolint/hadolint:v1.18.0 hadolint --ignore DL3018 - < docker/Dockerfile'
|
|
end
|
|
|
|
task default: [:rubocop, :spec, 'bundle:audit', :solargraph]
|
|
|
|
task ci: ['solargraph:init', :default, :hadolint]
|