mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-21 19:42:52 +00:00
🔨 Use Actions for testing
Removes TravisCI
This commit is contained in:
parent
a0578435b6
commit
33720a6e04
3 changed files with 43 additions and 24 deletions
42
.github/workflows/test-versions.yml
vendored
Normal file
42
.github/workflows/test-versions.yml
vendored
Normal file
|
@ -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
|
23
.travis.yml
23
.travis.yml
|
@ -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
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Introduction theme for Hugo
|
# 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)
|
[![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)
|
![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.
|
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.
|
||||||
|
|
Loading…
Reference in a new issue