mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2026-01-24 10:47:28 +01:00
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4 to 6. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v4...v6) --- updated-dependencies: - dependency-name: actions/setup-node dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
56 lines
1.1 KiB
YAML
56 lines
1.1 KiB
YAML
name: 'Test'
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths-ignore:
|
|
- '**.md'
|
|
pull_request:
|
|
paths-ignore:
|
|
- '**.md'
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os:
|
|
- 'ubuntu-22.04'
|
|
- 'ubuntu-20.04'
|
|
- 'ubuntu-latest'
|
|
- 'macos-latest'
|
|
- 'windows-latest'
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v6
|
|
with:
|
|
node-version-file: '.nvmrc'
|
|
cache: 'npm'
|
|
|
|
- run: npm ci
|
|
|
|
- name: Run prettier
|
|
if: startsWith(matrix.os, 'ubuntu-22.04')
|
|
run: npm run format:check
|
|
|
|
- name: Run eslint
|
|
if: startsWith(matrix.os, 'ubuntu-22.04')
|
|
run: npm run lint
|
|
|
|
- name: Run ncc
|
|
if: startsWith(matrix.os, 'ubuntu-22.04')
|
|
run: npm run build
|
|
|
|
- run: npm test
|
|
|
|
- name: Upload test coverage as artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: coverage-${{ matrix.os }}
|
|
path: coverage
|
|
|
|
- uses: codecov/codecov-action@v5
|