Add bin and edit workflow
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s

This commit is contained in:
2026-09-16 13:11:16 -06:00
parent c8ac4fcae5
commit 4cee170d66
17576 changed files with 895740 additions and 2 deletions
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
set -ex
bundle install
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
set -e
time script/fmt
time script/test
+35
View File
@@ -0,0 +1,35 @@
#! /usr/bin/env ruby
# frozen_string_literal: true
def relative_to_root(path)
File.expand_path(path, File.dirname(__dir__))
end
require "jekyll"
require relative_to_root("lib/jekyll-sitemap.rb")
require "pry-debugger"
SOURCE_DIR = relative_to_root("spec/fixtures")
DEST_DIR = relative_to_root("spec/dest")
def source_dir(*files)
File.join(SOURCE_DIR, *files)
end
def dest_dir(*files)
File.join(DEST_DIR, *files)
end
def config(overrides = {})
Jekyll.configuration(
"source" => source_dir,
"destination" => dest_dir,
"url" => "http://example.org"
).merge(overrides)
end
def site(configuration = config)
Jekyll::Site.new(configuration)
end
binding.pry
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
set -e
echo "Rubocop $(bundle exec rubocop --version)"
bundle exec rubocop -D -E $@
success=$?
if ((success != 0)); then
echo -e "\nTry running \`script/fmt -a\` to automatically fix errors"
fi
exit $success
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
# Tag and push a release.
set -e
script/cibuild
bundle exec rake release
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
set -ex
bundle exec rspec "$@"
bundle exec rspec spec/test_jekyll-last-modified-at.rb