Skip to content

Commit

Permalink
Merge pull request #78 from tiberiushunter/pipeline-fix
Browse files Browse the repository at this point in the history
Update tests and fix pipeline
  • Loading branch information
tiberiushunter authored Oct 24, 2024
2 parents b0a488e + b84e2b8 commit eb0530e
Show file tree
Hide file tree
Showing 10 changed files with 3,900 additions and 8,308 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22.9.0
5 changes: 3 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
source 'https://rubygems.org'

gem 'jekyll'
gem 'jekyll', '3.9.5'
gem 'jekyll-seo-tag'
gem 'jekyll-sitemap'
gem 'jemoji'
gem 'jemoji'
gem 'kramdown-parser-gfm'
149 changes: 94 additions & 55 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,102 +1,141 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (7.0.7.2)
concurrent-ruby (~> 1.0, >= 1.0.2)
activesupport (7.2.1)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1)
tzinfo (~> 2.0)
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
base64 (0.2.0)
bigdecimal (3.1.8)
colorator (1.1.0)
concurrent-ruby (1.2.2)
em-websocket (0.5.2)
concurrent-ruby (1.3.4)
connection_pool (2.4.1)
drb (2.2.1)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
http_parser.rb (~> 0)
eventmachine (1.2.7)
eventmachine (1.2.7-x64-mingw32)
ffi (1.14.2)
ffi (1.14.2-x64-mingw32)
ffi (1.17.0-aarch64-linux-gnu)
ffi (1.17.0-aarch64-linux-musl)
ffi (1.17.0-arm-linux-gnu)
ffi (1.17.0-arm-linux-musl)
ffi (1.17.0-arm64-darwin)
ffi (1.17.0-x64-mingw-ucrt)
ffi (1.17.0-x86-linux-gnu)
ffi (1.17.0-x86-linux-musl)
ffi (1.17.0-x86_64-darwin)
ffi (1.17.0-x86_64-linux-gnu)
ffi (1.17.0-x86_64-linux-musl)
forwardable-extended (2.6.0)
gemoji (3.0.1)
html-pipeline (2.14.0)
gemoji (4.1.0)
html-pipeline (2.14.3)
activesupport (>= 2)
nokogiri (>= 1.4)
http_parser.rb (0.6.0)
i18n (1.14.1)
http_parser.rb (0.8.0)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
jekyll (4.2.0)
jekyll (3.9.5)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 1.0)
jekyll-sass-converter (~> 2.0)
i18n (>= 0.7, < 2)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 2.0)
kramdown (~> 2.3)
kramdown-parser-gfm (~> 1.0)
kramdown (>= 1.17, < 3)
liquid (~> 4.0)
mercenary (~> 0.4.0)
mercenary (~> 0.3.3)
pathutil (~> 0.9)
rouge (~> 3.0)
rouge (>= 1.7, < 4)
safe_yaml (~> 1.0)
terminal-table (~> 2.0)
jekyll-sass-converter (2.1.0)
sassc (> 2.0.1, < 3.0)
jekyll-seo-tag (2.7.1)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-seo-tag (2.8.0)
jekyll (>= 3.8, < 5.0)
jekyll-sitemap (1.4.0)
jekyll (>= 3.7, < 5.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
jemoji (0.12.0)
gemoji (~> 3.0)
jemoji (0.13.0)
gemoji (>= 3, < 5)
html-pipeline (~> 2.2)
jekyll (>= 3.0, < 5.0)
kramdown (2.3.1)
kramdown (2.4.0)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.3)
listen (3.4.0)
liquid (4.0.4)
listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
mini_portile2 (2.8.6)
minitest (5.19.0)
nokogiri (1.16.5)
mini_portile2 (~> 2.8.2)
logger (1.6.1)
mercenary (0.3.6)
minitest (5.25.1)
nokogiri (1.16.7-aarch64-linux)
racc (~> 1.4)
nokogiri (1.16.7-arm-linux)
racc (~> 1.4)
nokogiri (1.16.7-arm64-darwin)
racc (~> 1.4)
nokogiri (1.16.7-x64-mingw-ucrt)
racc (~> 1.4)
nokogiri (1.16.7-x86-linux)
racc (~> 1.4)
nokogiri (1.16.7-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.16.7-x86_64-linux)
racc (~> 1.4)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.6)
racc (1.7.3)
rb-fsevent (0.10.4)
rb-inotify (0.10.1)
public_suffix (6.0.1)
racc (1.8.1)
rb-fsevent (0.11.2)
rb-inotify (0.11.1)
ffi (~> 1.0)
rexml (3.2.8)
strscan (>= 3.0.9)
rouge (3.26.0)
rexml (3.3.9)
rouge (3.30.0)
safe_yaml (1.0.5)
sassc (2.4.0)
ffi (~> 1.9)
sassc (2.4.0-x64-mingw32)
ffi (~> 1.9)
strscan (3.1.0)
terminal-table (2.0.0)
unicode-display_width (~> 1.1, >= 1.1.1)
sass (3.7.4)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
securerandom (0.3.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (1.7.0)

PLATFORMS
ruby
x64-mingw32
aarch64-linux
aarch64-linux-gnu
aarch64-linux-musl
arm-linux
arm-linux-gnu
arm-linux-gnueabihf
arm-linux-musl
arm-linux-musleabihf
arm64-darwin
x64-mingw-ucrt
x86-linux
x86-linux-gnu
x86-linux-musl
x86_64-darwin
x86_64-linux-gnu
x86_64-linux-musl

DEPENDENCIES
jekyll
jekyll (= 3.9.5)
jekyll-seo-tag
jekyll-sitemap
jemoji
kramdown-parser-gfm

BUNDLED WITH
2.1.4
2.5.16
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Owner: Sam Welek

[![GitHub][github-shield]][github-url]
[![LinkedIn][linkedin-shield]][linkedin-url]
[![Twitter][twitter-shield]][twitter-url]
[![X][x-shield]][x-url]

<a href="https://www.buymeacoffee.com/tiberiushunter" target="_blank"> <img src="https://cdn.buymeacoffee.com/buttons/default-yellow.png" alt="Buy Me A Coffee" height="41" width="174"></a>

Expand All @@ -66,7 +66,7 @@ Project Link: [GitHub][project-url]

[url]: https://samwelek.co.uk

[maintenance-shield]: https://img.shields.io/maintenance/yes/2023.svg?style=for-the-badge
[maintenance-shield]: https://img.shields.io/maintenance/yes/2024.svg?style=for-the-badge

[contributors-shield]: https://img.shields.io/github/contributors/tiberiushunter/samwelek.co.uk.svg?style=for-the-badge
[contributors-url]: https://github.com/tiberiushunter/samwelek.co.uk/graphs/contributors
Expand All @@ -90,8 +90,8 @@ Project Link: [GitHub][project-url]
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555
[linkedin-url]: https://linkedin.com/in/sam-welek

[twitter-shield]: https://img.shields.io/badge/-Twitter-black.svg?style=for-the-badge&logo=twitter&colorB=555
[twitter-url]: https://twitter.com/samwelek
[x-shield]: https://img.shields.io/badge/-X-black.svg?style=for-the-badge&logo=x&colorB=555
[x-url]: https://x.com/samwelek

<!-- Acknowledgement Specific -->
[1]: https://github.com/andrewhwanpark/dark-poole
Expand Down
21 changes: 10 additions & 11 deletions __tests__/content.spec.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { getJekyllData, printOnFail } from '../lib/helpers';
import { getSiteMetaData, printOnFail } from '../lib/helpers';

describe('Content in Posts', function () {
beforeAll(() => {
return getJekyllData().then((site) => {
this.site = site;
});
describe('Posts', function () {
let site;

beforeAll(async () => {
site = await getSiteMetaData();
});

test('Posts must contain content', () => {
const { posts } = this.site;
it('must contain content', () => {
const { posts } = site;

posts.forEach((post) => {
printOnFail(post.path, () => {
Expand All @@ -17,14 +17,13 @@ describe('Content in Posts', function () {
});
});

test('Posts content must be longer than 50 characters', () => {
const { posts } = this.site;
it('must have content longer than 50 characters', () => {
const { posts } = site;

posts.forEach((post) => {
printOnFail(post.path, () => {
expect(post.content.length > 50).toBe(true);
});
});
});

});
30 changes: 0 additions & 30 deletions __tests__/content.test.js

This file was deleted.

Loading

0 comments on commit eb0530e

Please sign in to comment.