diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..66ad12b0 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,35 @@ +name: Main + +on: + push: + branches: + - "**" + workflow_dispatch: + +env: + RUBY_VERSION: 2.7.6 + NODE_VERSION: 14.18.1 + JEKYLL_ENV: development + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ env.RUBY_VERSION }} + bundler-cache: true + - name: Install Node.js ${{ env.NODE_VERSION }} + uses: actions/setup-node@v3 + with: + node-version: ${{ env.NODE_VERSION }} + cache: yarn + - uses: actions/cache@v2 + with: + path: | + '**/node_modules' + key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} + - run: yarn install + - name: Build + run: bundle exec jekyll serve diff --git a/Gemfile b/Gemfile index acc0125a..fd03e851 100644 --- a/Gemfile +++ b/Gemfile @@ -17,3 +17,5 @@ group :jekyll_plugins do gem "jekyll-sitemap" gem "html-proofer", "~> 3.10.x" end + +gem "webrick" diff --git a/Gemfile.lock b/Gemfile.lock index 5e5ab20d..e5585e05 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -80,6 +80,7 @@ GEM typhoeus (1.4.0) ethon (>= 0.9.0) unicode-display_width (1.8.0) + webrick (1.7.0) yell (2.2.2) PLATFORMS @@ -94,6 +95,7 @@ DEPENDENCIES kramdown (~> 2.1.x) liquid (~> 4.0.x) rake + webrick BUNDLED WITH 2.1.4 diff --git a/yarn.lock b/yarn.lock index e349fd69..5716aa29 100644 --- a/yarn.lock +++ b/yarn.lock @@ -317,9 +317,9 @@ caniuse-api@^3.0.0: lodash.uniq "^4.5.0" caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001317: - version "1.0.30001320" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001320.tgz#8397391bec389b8ccce328636499b7284ee13285" - integrity sha512-MWPzG54AGdo3nWx7zHZTefseM5Y1ccM7hlQKHRqJkPozUaw3hNbBTMmLn16GG2FUzjR13Cr3NPfhIieX5PzXDA== + version "1.0.30001397" + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001397.tgz" + integrity sha512-SW9N2TbCdLf0eiNDRrrQXx2sOkaakNZbCjgNpPyMJJbiOrU5QzMIrXOVMRM1myBXTD5iTkdrtU/EguCrBocHlA== chalk@^2.0.1, chalk@^2.1.0, chalk@^2.4.1, chalk@^2.4.2: version "2.4.2"