From 0238b16b4f10b2103773978cfb878e083a50483b Mon Sep 17 00:00:00 2001 From: Victor Pogor Date: Wed, 18 Nov 2020 18:32:22 +0000 Subject: [PATCH] ci: added pull request checks fix #33 --- .github/workflows/pull-request.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/pull-request.yml diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 00000000..8e669545 --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -0,0 +1,26 @@ +name: "Build and checks" +on: + push: + branches: + - master + - dev +jobs: + deploy-blog: + name: Deploying the static pages to the FTP server + runs-on: ubuntu-20.04 + container: klakegg/hugo:ext-alpine + defaults: + run: + working-directory: CodeIT + steps: + - name: Set up Git repository + uses: actions/checkout@v2 + with: + path: 'CodeIT' + fetch-depth: 0 + - name: Install HTML proofer + run: apk update && apk add ruby-full build-dependencies build-base libxml2-dev libxslt-dev && gem install html-proofer --no-document + - name: Build static pages + run: hugo --source=exampleSite -v --gc + - name: Check the theme documentation + run: htmlproofer exampleSite/public --check-html --allow-hash-href --empty-alt-ignore --disable-external