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:
Sardorbek Imomaliev
2022-08-29 20:06:54 +05:00
committed by GitHub
parent 46553eae11
commit bd5a5edf1b
10 changed files with 19 additions and 17 deletions

View File

@@ -8,7 +8,7 @@ on:
jobs:
CodeQL-Build:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3

View File

@@ -10,7 +10,7 @@ permissions:
jobs:
dependency-review:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/dependency-review-action@v1

View File

@@ -23,7 +23,7 @@ on:
jobs:
dev-image-test:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: make build

View File

@@ -12,7 +12,7 @@ on:
jobs:
comment:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:

View File

@@ -6,7 +6,7 @@ on:
jobs:
purge:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- run: >

View File

@@ -7,7 +7,7 @@ on:
jobs:
release:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3

View File

@@ -11,8 +11,9 @@ jobs:
strategy:
matrix:
os:
- 'ubuntu-22.04'
- 'ubuntu-20.04'
- 'ubuntu-18.04'
- 'ubuntu-latest'
- 'macos-latest'
- 'windows-latest'
hugo-version:

View File

@@ -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

View File

@@ -6,7 +6,7 @@ on:
jobs:
update:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3