actions-hugo/.github/workflows/test.yml
Shohei Ueda a6d33f08ac
config: enhance tsconfig.json (#44)
* config: enhance tsconfig.json (Set sourceMap and removeComments to true)
* gha: Add pull_request trigger, close #43
* config: Add waring emoji
2019-09-23 10:58:19 +09:00

66 lines
1.2 KiB
YAML

name: 'Test'
on:
pull_request:
push:
paths:
- '**'
- '!LICENSE'
- '!README.md'
- '!images'
- '!.gitignore'
- '!.vscode'
jobs:
test:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Install dependencies
run: npm ci
- name: Format check
run: npm run format:check
- name: Lint
run: npm run lint
- name: Test
run: npm test
- uses: actions/upload-artifact@master
with:
name: coverage
path: coverage
test-prod:
runs-on: ${{ matrix.os }}
needs: test
strategy:
matrix:
os: ['ubuntu-18.04', 'macOS-10.14', 'windows-2019']
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
with:
fetch-depth: 1
- name: Test action
uses: ./
with:
hugo-version: ${{ matrix.hugo-version }}
extended: ${{ matrix.extended }}