mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2026-01-24 10:47:28 +01:00
ci: drop ubuntu-18.04, add ubuntu-22.04 and ubuntu-latest (#603)
add support for ubuntu 22.04, drop ubuntu-18.04 - [starting with 8 of August 2022 support for ubuntu 18.04 is deprecated](https://github.blog/changelog/2022-08-09-github-actions-the-ubuntu-18-04-actions-runner-image-is-being-deprecated-and-will-be-removed-by-12-1-22/) - [ubuntu 22.04 is generally available](https://github.blog/changelog/2022-08-09-github-actions-ubuntu-22-04-is-now-generally-available-on-github-hosted-runners/)
This commit is contained in:
committed by
GitHub
parent
46553eae11
commit
bd5a5edf1b
9
.github/workflows/test.yml
vendored
9
.github/workflows/test.yml
vendored
@@ -16,8 +16,9 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
os:
|
||||
- 'ubuntu-22.04'
|
||||
- 'ubuntu-20.04'
|
||||
- 'ubuntu-18.04'
|
||||
- 'ubuntu-latest'
|
||||
- 'macos-latest'
|
||||
- 'windows-latest'
|
||||
steps:
|
||||
@@ -35,15 +36,15 @@ jobs:
|
||||
- run: npm ci
|
||||
|
||||
- name: Run prettier
|
||||
if: startsWith(matrix.os, 'ubuntu-18.04')
|
||||
if: startsWith(matrix.os, 'ubuntu-22.04')
|
||||
run: npm run format:check
|
||||
|
||||
- name: Run eslint
|
||||
if: startsWith(matrix.os, 'ubuntu-18.04')
|
||||
if: startsWith(matrix.os, 'ubuntu-22.04')
|
||||
run: npm run lint
|
||||
|
||||
- name: Run ncc
|
||||
if: startsWith(matrix.os, 'ubuntu-18.04')
|
||||
if: startsWith(matrix.os, 'ubuntu-22.04')
|
||||
run: npm run build
|
||||
|
||||
- run: npm test
|
||||
|
||||
Reference in New Issue
Block a user