From bd5a5edf1b6a534bee1c70bd49f0ba3ff435e597 Mon Sep 17 00:00:00 2001 From: Sardorbek Imomaliev Date: Mon, 29 Aug 2022 20:06:54 +0500 Subject: [PATCH] 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/) --- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/dependency-review.yml | 2 +- .github/workflows/dev-image.yml | 2 +- .github/workflows/label-commenter.yml | 2 +- .github/workflows/purge-readme-image-cache.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test-action.yml | 3 ++- .github/workflows/test.yml | 9 +++++---- .github/workflows/update-major-tag.yml | 2 +- README.md | 10 +++++----- 10 files changed, 19 insertions(+), 17 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 7bedcb8..8aa90cf 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -8,7 +8,7 @@ on: jobs: CodeQL-Build: - runs-on: ubuntu-18.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index e8c657c..a78e6f5 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -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 diff --git a/.github/workflows/dev-image.yml b/.github/workflows/dev-image.yml index 92714f7..bf62abb 100644 --- a/.github/workflows/dev-image.yml +++ b/.github/workflows/dev-image.yml @@ -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 diff --git a/.github/workflows/label-commenter.yml b/.github/workflows/label-commenter.yml index 88efafd..4243162 100644 --- a/.github/workflows/label-commenter.yml +++ b/.github/workflows/label-commenter.yml @@ -12,7 +12,7 @@ on: jobs: comment: - runs-on: ubuntu-18.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/purge-readme-image-cache.yml b/.github/workflows/purge-readme-image-cache.yml index 7e72136..a0b3df7 100644 --- a/.github/workflows/purge-readme-image-cache.yml +++ b/.github/workflows/purge-readme-image-cache.yml @@ -6,7 +6,7 @@ on: jobs: purge: - runs-on: ubuntu-18.04 + runs-on: ubuntu-22.04 steps: - run: > diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 19340dd..c8e59ba 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ on: jobs: release: - runs-on: ubuntu-18.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 3500002..9fc7598 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -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: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 723958f..6262656 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/.github/workflows/update-major-tag.yml b/.github/workflows/update-major-tag.yml index e5cdd53..41c7b7a 100644 --- a/.github/workflows/update-major-tag.yml +++ b/.github/workflows/update-major-tag.yml @@ -6,7 +6,7 @@ on: jobs: update: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 diff --git a/README.md b/README.md index e231ed5..5532ec0 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ We no longer build or pull a Hugo docker image. Thanks to this change, we can complete this action in less than a few seconds. (A docker base action was taking about 1 min or more execution time to build and pull a docker image.) -| OS (runs-on) | ubuntu-18.04, ubuntu-20.04 | macos-latest | windows-2019 | +| OS (runs-on) | ubuntu-latest, ubuntu-20.04, ubuntu-22.04 | macos-latest | windows-2019 | |---|:---:|:---:|:---:| | Support | ✅️ | ✅️ | ✅️ | @@ -80,7 +80,7 @@ on: jobs: deploy: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 concurrency: group: ${{ github.workflow }}-${{ github.ref }} steps: @@ -245,7 +245,7 @@ on: jobs: deploy: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 concurrency: group: ${{ github.workflow }}-${{ github.ref }} steps: @@ -300,7 +300,7 @@ on: jobs: deploy: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 concurrency: group: ${{ github.workflow }}-${{ github.ref }} steps: @@ -352,7 +352,7 @@ on: jobs: deploy: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 concurrency: group: ${{ github.workflow }}-${{ github.ref }} steps: