Skip to content

Commit 8a7274e

Browse files
lcreidgithub-actions
andauthored
Generate Screenshots in CI (#715)
* Ignore Ruby debugger history * Commit screenshots Run step if failure Set working directory Quote message Debuggin Check first, man With name and email Changed in CI Please review changes in these files carefully, as they were automatically generated during CI. Revert "Changed in CI" This reverts commit 1bf997c. Add documentation and cleanups Fix quoting * Changed in CI Please review the changes in the files in this commit carefully, as they were automatically generated during CI. Run `git pull` to bring the changes into your local branch. Then, if you do not want the changes, run `git revert HEAD`. * Revert "Changed in CI" This reverts commit e4f9d01. * Try to avoid double CI run when screenshots change * [skip ci] Changed in CI Please review the changes in the files in this commit carefully, as they were automatically generated during CI. Run `git pull` to bring the changes into your local branch. Then, if you do not want the changes, run `git revert HEAD`. * Only run screenshot commit on failure * Remove comment * Be safe with CI * Clarify workflow for screenshot changes in main --------- Co-authored-by: github-actions <github-actions@github.com>
1 parent ed3eda8 commit 8a7274e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+56
-10
lines changed

.github/workflows/ruby.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,8 @@ jobs:
5656
- name: Run tests
5757
working-directory: demo
5858
run: bundle exec rake test:all
59+
- name: Commit changed screenshots and other files
60+
if: failure()
61+
working-directory: demo
62+
run: bundle exec rake commit
63+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ vendor/bundle
5454
# or .local/share/pry/pry_history if you need to be more exact
5555
.local/
5656
.irb_history
57+
.rdbg_history
5758
.byebug_history
5859
# For Debian images with Bash
5960
.bash_history

CONTRIBUTING.md

Lines changed: 30 additions & 0 deletions

README.md

Lines changed: 1 addition & 1 deletion

demo/app/views/layouts/application.html.erb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
<head>
44
<title>Hello, world!</title>
55
<meta name="viewport" content="width=device-width,initial-scale=1">
6-
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Arimo">
7-
86
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.33.0/codemirror.min.css">
97

108
<style type="text/css">
@@ -35,12 +33,6 @@
3533

3634
<%= stylesheet_link_tag "application" %>
3735
<%= javascript_include_tag "application", "data-turbo-track": "reload", defer: true %>
38-
39-
<style type="text/css">
40-
:root {
41-
--bs-body-font-family: "Arimo", Arial, sans-serif;
42-
}
43-
</style>
4436
</head>
4537

4638
<body>
-35 Bytes
-1.84 KB
232 Bytes
-572 Bytes
-552 Bytes

0 commit comments

Comments
 (0)