Skip to content

Commit 8bb94e3

Browse files
author
Marten Klitzke
committed
Add Github Action workflow to make sure build is not broken after updates
1 parent d1aace3 commit 8bb94e3

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-3
lines changed

.github/workflows/main.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Main
2+
3+
on:
4+
push:
5+
branches:
6+
- "**"
7+
workflow_dispatch:
8+
9+
env:
10+
RUBY_VERSION: 2.7.6
11+
NODE_VERSION: 14.18.1
12+
JEKYLL_ENV: development
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: ruby/setup-ruby@v1
20+
with:
21+
ruby-version: ${{ env.RUBY_VERSION }}
22+
bundler-cache: true
23+
- name: Install Node.js ${{ env.NODE_VERSION }}
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: ${{ env.NODE_VERSION }}
27+
cache: yarn
28+
- uses: actions/cache@v2
29+
with:
30+
path: |
31+
'**/node_modules'
32+
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
33+
- run: yarn install
34+
- name: Build
35+
run: bundle exec jekyll serve

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,9 @@ caniuse-api@^3.0.0:
317317
lodash.uniq "^4.5.0"
318318

319319
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001317:
320-
version "1.0.30001320"
321-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001320.tgz#8397391bec389b8ccce328636499b7284ee13285"
322-
integrity sha512-MWPzG54AGdo3nWx7zHZTefseM5Y1ccM7hlQKHRqJkPozUaw3hNbBTMmLn16GG2FUzjR13Cr3NPfhIieX5PzXDA==
320+
version "1.0.30001397"
321+
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001397.tgz"
322+
integrity sha512-SW9N2TbCdLf0eiNDRrrQXx2sOkaakNZbCjgNpPyMJJbiOrU5QzMIrXOVMRM1myBXTD5iTkdrtU/EguCrBocHlA==
323323

324324
chalk@^2.0.1, chalk@^2.1.0, chalk@^2.4.1, chalk@^2.4.2:
325325
version "2.4.2"

0 commit comments

Comments
 (0)