Skip to content

Commit

Permalink
"Borrow" ci workflow from jdm (#80)
Browse files Browse the repository at this point in the history
* Update workflows

* Update gems

* Re-add missing platforms to gem lockfile

* Actually fix gem lockfile

* Exclude pdf files from formatting check

* Lock html-proofer

* notes_en -> notes

* Fix file formatting

* Strip country code in ci test
  • Loading branch information
Regalijan authored Aug 3, 2022
1 parent e0a3754 commit 76574e2
Show file tree
Hide file tree
Showing 10 changed files with 148 additions and 107 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: test
on:
on:
push:
schedule:
- cron: '0 0 * * 0' # Run every Sunday
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI

on:
push:
branches:
- master
pull_request:

jobs:
jekyll:
name: Run Jekyll Tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.2
bundler-cache: true
- run: script/run_jekyll.sh

validate-json:
name: Validate JSON
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.2
bundler-cache: true
- run: script/validate_json.rb

check-files-formatting:
name: Check Files Formatting
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.2
bundler-cache: true
- run: script/check_files_formatting.sh
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
source "https://rubygems.org"

gem "ffi", ">= 1.13.1 "
gem "jekyll", "= 4.1.1"
gem "html-proofer", ">= 3.16.0"
gem "ffi", ">= 1.15.5"
gem "jekyll", "= 4.2.2"
gem "html-proofer", "= 3.19.4"

gem "webrick", "~> 1.7"

Expand Down
72 changes: 34 additions & 38 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,102 +4,98 @@ GEM
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
colorator (1.1.0)
concurrent-ruby (1.1.6)
em-websocket (0.5.1)
concurrent-ruby (1.1.10)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
ethon (0.12.0)
ffi (>= 1.3.0)
http_parser.rb (~> 0)
ethon (0.15.0)
ffi (>= 1.15.0)
eventmachine (1.2.7)
eventmachine (1.2.7-x64-mingw32)
ffi (1.15.4)
ffi (1.15.4-x64-mingw32)
ffi (1.15.5)
ffi (1.15.5-x64-mingw-ucrt)
ffi (1.15.5-x64-mingw32)
forwardable-extended (2.6.0)
html-proofer (3.16.0)
html-proofer (3.19.4)
addressable (~> 2.3)
mercenary (~> 0.3)
nokogumbo (~> 2.0)
parallel (~> 1.3)
nokogiri (~> 1.13)
parallel (~> 1.10)
rainbow (~> 3.0)
typhoeus (~> 1.3)
yell (~> 2.0)
http_parser.rb (0.6.0)
i18n (1.8.3)
http_parser.rb (0.8.0)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
jekyll (4.1.1)
jekyll (4.2.2)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 1.0)
jekyll-sass-converter (~> 2.0)
jekyll-watch (~> 2.0)
kramdown (~> 2.1)
kramdown (~> 2.3)
kramdown-parser-gfm (~> 1.0)
liquid (~> 4.0)
mercenary (~> 0.4.0)
pathutil (~> 0.9)
rouge (~> 3.0)
safe_yaml (~> 1.0)
terminal-table (~> 1.8)
terminal-table (~> 2.0)
jekyll-analytics (0.1.14)
jekyll-sass-converter (2.1.0)
jekyll-sass-converter (2.2.0)
sassc (> 2.0.1, < 3.0)
jekyll-watch (2.2.1)
listen (~> 3.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.7.0)
listen (3.7.1)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
mini_portile2 (2.6.1)
nokogiri (1.12.5)
mini_portile2 (~> 2.6.1)
mini_portile2 (2.8.0)
nokogiri (1.13.8)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
nokogiri (1.12.5-x64-mingw32)
racc (~> 1.4)
nokogiri (1.12.5-x86_64-linux)
racc (~> 1.4)
nokogumbo (2.0.2)
nokogiri (~> 1.8, >= 1.8.4)
parallel (1.19.2)
parallel (1.22.1)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.6)
public_suffix (4.0.7)
racc (1.6.0)
rainbow (3.0.0)
rb-fsevent (0.11.0)
rainbow (3.1.1)
rb-fsevent (0.11.1)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.5)
rouge (3.20.0)
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)
terminal-table (1.8.0)
terminal-table (2.0.0)
unicode-display_width (~> 1.1, >= 1.1.1)
typhoeus (1.4.0)
ethon (>= 0.9.0)
unicode-display_width (1.7.0)
unicode-display_width (1.8.0)
webrick (1.7.0)
yell (2.2.2)

PLATFORMS
ruby
x64-mingw-ucrt
x64-mingw32
x86_64-linux

DEPENDENCIES
ffi (>= 1.13.1)
html-proofer (>= 3.16.0)
jekyll (= 4.1.1)
ffi (>= 1.15.5)
html-proofer (= 3.19.4)
jekyll (= 4.2.2)
jekyll-analytics (~> 0.1.14)
webrick (~> 1.7)

BUNDLED WITH
2.2.26
2.3.7
Loading

0 comments on commit 76574e2

Please sign in to comment.