From 33720a6e04de8736382fcecd420dada55aef6091 Mon Sep 17 00:00:00 2001 From: Victoria Drake Date: Sat, 14 Mar 2020 20:47:39 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Use=20Actions=20for=20testing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removes TravisCI --- .github/workflows/test-versions.yml | 42 +++++++++++++++++++++++++++++ .travis.yml | 23 ---------------- README.md | 2 +- 3 files changed, 43 insertions(+), 24 deletions(-) create mode 100644 .github/workflows/test-versions.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test-versions.yml b/.github/workflows/test-versions.yml new file mode 100644 index 0000000..b0fbaf5 --- /dev/null +++ b/.github/workflows/test-versions.yml @@ -0,0 +1,42 @@ +name: test-versions + +on: + push: + branches: + - master + +jobs: + deploy: + runs-on: ubuntu-latest + strategy: + matrix: + hugo: ['0.49.2', '0.50', '0.51', '0.52', '0.53', '0.54.0', '0.55.0', '0.56.0', '0.57.0', '0.58.0', '0.59.0', '0.60.0', '0.61.0', '0.62.0', '0.63.0', '0.64.0', '0.65.0', '0.66.0', '0.67.0'] + + fail-fast: true + + + steps: + - uses: actions/checkout@master + + - name: Set up Node + uses: actions/setup-node@v1 + with: + node-version: 12.x + - name: Install tools + run: | + sudo apt install curl jq + npm install -g postcss-cli autoprefixer + + - name: Test with Hugo ${{ matrix.hugo }} + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: ${{ matrix.hugo }} + extended: true + + - name: Build with Hugo ${{ matrix.hugo }} + run: | + cd exampleSite + HUGO_THEME="hugo-theme-introduction" hugo --themesDir ../.. -v + + - name: Test HTML from Hugo ${{ matrix.hugo }} + run: docker run -v ${GITHUB_WORKSPACE}/public/:/mnt 18fgsa/html-proofer mnt --disable-external \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 864d5df..0000000 --- a/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -git: - depth: false - -env: - - HUGO_VERSION="0.49.2" - - HUGO_VERSION="0.50" - - HUGO_VERSION="0.51" - - HUGO_VERSION="0.52" - - HUGO_VERSION="0.53" - - HUGO_VERSION="0.54.0" - - HUGO_VERSION="0.55.0" - - HUGO_VERSION="0.56.0" - -install: - - wget -q https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz - - tar xf hugo_${HUGO_VERSION}_Linux-64bit.tar.gz - - mv hugo ~/bin/ - - gem install html-proofer - -script: - - cd exampleSite - - HUGO_THEME=hugo-theme-introduction hugo --themesDir ../.. -v - - htmlproofer public --check-html --disable-external diff --git a/README.md b/README.md index b3c335c..070fd64 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Introduction theme for Hugo [![Netlify Status](https://api.netlify.com/api/v1/badges/51d09485-c9d1-4a88-90ba-894f09e5a29d/deploy-status)](https://app.netlify.com/sites/hugo-introduction/deploys) -[![Build Status](https://travis-ci.com/victoriadrake/hugo-theme-introduction.svg?branch=master)](https://travis-ci.com/victoriadrake/hugo-theme-introduction) +![Test Hugo versions](https://github.com/victoriadrake/hugo-theme-introduction/workflows/test-versions/badge.svg) ![Latest Release](https://img.shields.io/github/tag/victoriadrake/hugo-theme-introduction.svg) Introduction is a minimalist, highly-versatile theme for Hugo. It can be configured as a single page, or as a full-featured site with multiple sections. It is multilingual, responsive, and includes a light and dark theme.