diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..4966e2b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake +# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby + +name: Ruby + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Ruby + uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0 + with: + ruby-version: "3.1" # Not needed with a .ruby-version file + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + cache-version: 0 # Increment this number if you need to re-download cached gems + - name: Run tests + run: bundle exec rake test diff --git a/Gemfile b/Gemfile index 2b361dd..c8797ff 100644 --- a/Gemfile +++ b/Gemfile @@ -27,4 +27,6 @@ gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby] gem "minimal-mistakes-jekyll", "~> 4.24" -gem "html-proofer", "~> 5.0" +group :test do + gem "html-proofer", "~> 5.0" +end diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..c41945d --- /dev/null +++ b/Rakefile @@ -0,0 +1,7 @@ +require 'html-proofer' + +task :test do +sh "bundle exec jekyll build" +options = { :assume_extension => true } +HTMLProofer.check_directory("_site", options).run +end diff --git a/_site/Rakefile b/_site/Rakefile new file mode 100644 index 0000000..c41945d --- /dev/null +++ b/_site/Rakefile @@ -0,0 +1,7 @@ +require 'html-proofer' + +task :test do +sh "bundle exec jekyll build" +options = { :assume_extension => true } +HTMLProofer.check_directory("_site", options).run +end diff --git a/_site/feed.xml b/_site/feed.xml index 3432dec..d611767 100644 --- a/_site/feed.xml +++ b/_site/feed.xml @@ -1 +1 @@ -Jekyll2024-04-14T23:00:26-07:00http://localhost:4000/feed.xmlOPS 2.0IEEE at UCLA \ No newline at end of file +Jekyll2024-04-14T23:25:42-07:00http://localhost:4000/feed.xmlOPS 2.0IEEE at UCLA \ No newline at end of file diff --git a/_site/projects/1-back-to-the-basics/index.html b/_site/projects/1-back-to-the-basics/index.html index f3c812d..cd93d88 100644 --- a/_site/projects/1-back-to-the-basics/index.html +++ b/_site/projects/1-back-to-the-basics/index.html @@ -36,7 +36,7 @@ - + @@ -171,7 +171,7 @@
- +
@@ -439,7 +439,7 @@

Checkoff Questions

-

Updated:

+

Updated:

diff --git a/_site/projects/2-debugging/index.html b/_site/projects/2-debugging/index.html index 9d93199..ec679fc 100644 --- a/_site/projects/2-debugging/index.html +++ b/_site/projects/2-debugging/index.html @@ -36,7 +36,7 @@ - + @@ -171,7 +171,7 @@
- +
@@ -259,7 +259,7 @@

Potential Buggy circuits

-

Updated:

+

Updated:

diff --git a/_site/projects/3-integrated-circuits/index.html b/_site/projects/3-integrated-circuits/index.html index 790f5fa..64d03d6 100644 --- a/_site/projects/3-integrated-circuits/index.html +++ b/_site/projects/3-integrated-circuits/index.html @@ -36,7 +36,7 @@ - + @@ -171,7 +171,7 @@
- +
@@ -537,7 +537,7 @@

Part 2

-

Updated:

+

Updated:

diff --git a/_site/projects/4-microcontrollers/index.html b/_site/projects/4-microcontrollers/index.html index 11cb118..a031fff 100644 --- a/_site/projects/4-microcontrollers/index.html +++ b/_site/projects/4-microcontrollers/index.html @@ -36,7 +36,7 @@ - + @@ -171,7 +171,7 @@
- +
@@ -524,7 +524,7 @@

Checkoff Questions

-

Updated:

+

Updated:

diff --git a/_site/projects/5-digital-analog-pwm/index.html b/_site/projects/5-digital-analog-pwm/index.html index c2591a0..7cce928 100644 --- a/_site/projects/5-digital-analog-pwm/index.html +++ b/_site/projects/5-digital-analog-pwm/index.html @@ -36,7 +36,7 @@ - + @@ -171,7 +171,7 @@
- +
@@ -436,7 +436,7 @@

Checkoff Questions

-

Updated:

+

Updated:

diff --git a/_site/projects/6-transistors/index.html b/_site/projects/6-transistors/index.html index c01befd..9b8974b 100644 --- a/_site/projects/6-transistors/index.html +++ b/_site/projects/6-transistors/index.html @@ -36,7 +36,7 @@ - + @@ -171,7 +171,7 @@
- +
@@ -485,7 +485,7 @@

Checkoff Questions

-

Updated:

+

Updated:

diff --git a/_site/projects/7-serial-communication/index.html b/_site/projects/7-serial-communication/index.html index 9201111..0e61fa1 100644 --- a/_site/projects/7-serial-communication/index.html +++ b/_site/projects/7-serial-communication/index.html @@ -36,7 +36,7 @@ - + @@ -171,7 +171,7 @@
- +
@@ -633,7 +633,7 @@

Connecting HC-05 to Windows

-

Updated:

+

Updated:

diff --git a/_site/projects/8-communication-protocols/index.html b/_site/projects/8-communication-protocols/index.html index 98a6928..23c36d3 100644 --- a/_site/projects/8-communication-protocols/index.html +++ b/_site/projects/8-communication-protocols/index.html @@ -36,7 +36,7 @@ - + @@ -171,7 +171,7 @@
- +
@@ -544,7 +544,7 @@

Section two: controla’ controla’

-

Updated:

+

Updated:

diff --git a/_site/projects/9-pid-and-motor-control/index.html b/_site/projects/9-pid-and-motor-control/index.html index 0855d50..ad0930e 100644 --- a/_site/projects/9-pid-and-motor-control/index.html +++ b/_site/projects/9-pid-and-motor-control/index.html @@ -36,7 +36,7 @@ - + @@ -171,7 +171,7 @@
- +
@@ -617,7 +617,7 @@

FAQ

-

Updated:

+

Updated:

diff --git a/_site/sitemap.xml b/_site/sitemap.xml index d5d864a..6202030 100644 --- a/_site/sitemap.xml +++ b/_site/sitemap.xml @@ -2,39 +2,39 @@ http://localhost:4000/projects/1-back-to-the-basics/ -2024-04-14T23:00:26-07:00 +2024-04-14T23:25:42-07:00 http://localhost:4000/projects/2-debugging/ -2024-04-14T23:00:26-07:00 +2024-04-14T23:25:42-07:00 http://localhost:4000/projects/3-integrated-circuits/ -2024-04-14T23:00:26-07:00 +2024-04-14T23:25:42-07:00 http://localhost:4000/projects/4-microcontrollers/ -2024-04-14T23:00:26-07:00 +2024-04-14T23:25:42-07:00 http://localhost:4000/projects/5-digital-analog-pwm/ -2024-04-14T23:00:26-07:00 +2024-04-14T23:25:42-07:00 http://localhost:4000/projects/6-transistors/ -2024-04-14T23:00:26-07:00 +2024-04-14T23:25:42-07:00 http://localhost:4000/projects/7-serial-communication/ -2024-04-14T23:00:26-07:00 +2024-04-14T23:25:42-07:00 http://localhost:4000/projects/8-communication-protocols/ -2024-04-14T23:00:26-07:00 +2024-04-14T23:25:42-07:00 http://localhost:4000/projects/9-pid-and-motor-control/ -2024-04-14T23:00:26-07:00 +2024-04-14T23:25:42-07:00 http://localhost:4000/555-timer/