actions-hugo/.github/workflows/test.yml
Shohei Ueda d46d0aa12e
Refactor: Get the latest version from Homebrew (#28)
Refactoring

* feat: Add reject to Promise
* feat: Add printing inputs
* feat: Add error handling to getLatestVersion()
* feat: show version of Hugo, Go, and Git (Close #23)
* refactor: Get the latest version from Homebrew (Close #26)
* refactor: enhance error message of promise reject

Enhancement for workflow

* gha: Add deps (test-prod job needs test job)
* gha: Fix matrix testing
* gha: comment out Build production step
* gha: remove Dump step

Update README

* docs: update readme
2019-09-18 04:11:47 +09:00

42 lines
718 B
YAML

name: 'Test'
on: push
jobs:
test:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
# - name: Test script
# run: npm test
# - name: Build production
# run: npm run build
test-prod:
runs-on: ubuntu-18.04
needs: test
strategy:
matrix:
# hugo-version: ['latest']
# extended: [true]
hugo-version: ['latest', '0.58.2']
extended: [true, false]
steps:
- uses: actions/checkout@v1
- name: Test action
uses: ./
with:
hugo-version: ${{ matrix.hugo-version }}
extended: ${{ matrix.extended }}