From b10091c0dc4b9719c499244d54015e6202966395 Mon Sep 17 00:00:00 2001 From: Shohei Ueda <30958501+peaceiris@users.noreply.github.com> Date: Sun, 22 Sep 2019 09:37:17 +0900 Subject: [PATCH] Enhance: workflow (#38) * gha: Add paths-ignore * docs: enhance --- .github/workflows/test.yml | 22 +++++++++++++++------- README.md | 4 ++++ 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b6e6ae6..8bbdda5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,13 @@ name: 'Test' -on: push +on: + push: + paths-ignore: + - 'LICENSE' + - 'README.md' + - 'images' + - '.gitignore' + - '.vscode' jobs: test: @@ -28,21 +35,22 @@ jobs: name: coverage path: coverage - # - name: Build production - # run: npm run build - test-prod: runs-on: ${{ matrix.os }} needs: test strategy: matrix: - # os: ['ubuntu-18.04', 'macOS-10.14'] os: ['ubuntu-18.04', 'macOS-10.14', 'windows-2019'] - # hugo-version: ['latest'] - # extended: [true] hugo-version: ['latest', '0.57.2'] extended: [true, false] + # exclude: + # - os: 'macOS-10.14' + # hugo-version: 'latest' + # extended: false + # - os: 'windows-2019' + # hugo-version: 'latest' + # extended: false steps: - uses: actions/checkout@v1 diff --git a/README.md b/README.md index d686dcf..562c369 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,8 @@ jobs: ### Use Hugo extended +Set `extended: true` to use a Hugo extended version. + ```yaml - name: Setup Hugo uses: peaceiris/actions-hugo@v2.2.0 @@ -86,6 +88,8 @@ jobs: ### Use the latest version of Hugo +Set `hugo-version: 'latest'` to use the latest version of Hugo. + ```yaml - name: Setup Hugo uses: peaceiris/actions-hugo@v2.2.0