Skip to content

Commit

Permalink
Added CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenengler committed Feb 14, 2024
1 parent 255219f commit 9c46a0e
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test example site

on:
push:
branches: [master]
pull_request:
types: [opened, synchronize]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install hugo
run: |
wget -O hugo.deb https://github.com/gohugoio/hugo/releases/download/v0.122.0/hugo_0.122.0_linux-amd64.deb
sudo apt-get install -y ./hugo.deb
- name: Build
run: |
cd no-js-hugo-theme
mkdir exampleSite/themes
ln -sT "$(pwd)" exampleSite/themes/no-js-hugo-theme
cd exampleSite && hugo

0 comments on commit 9c46a0e

Please sign in to comment.