Merge pull request #19425 from dvdksn/vale-ci

ci: add vale style check and update runners
This commit is contained in:
David Karlsson 2024-02-16 10:14:32 +01:00 committed by GitHub
commit ff281c53a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 14 additions and 6 deletions

View File

@ -16,7 +16,7 @@ permissions:
jobs: jobs:
build: build:
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
steps: steps:
- -
name: Checkout name: Checkout
@ -35,8 +35,16 @@ jobs:
*.cache-from=type=gha,scope=build *.cache-from=type=gha,scope=build
*.cache-to=type=gha,scope=build,mode=max *.cache-to=type=gha,scope=build,mode=max
vale:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: errata-ai/vale-action@38bf078c328061f59879b347ca344a718a736018 # v2.1.0
with:
files: content
validate: validate:
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -65,7 +73,7 @@ jobs:
# build-releaser job will just build _releaser app used for Netlify and # build-releaser job will just build _releaser app used for Netlify and
# AWS deployment in publish workflow. it's just to be sure it builds correctly. # AWS deployment in publish workflow. it's just to be sure it builds correctly.
build-releaser: build-releaser:
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
steps: steps:
- -
name: Checkout name: Checkout

View File

@ -19,7 +19,7 @@ permissions:
jobs: jobs:
publish: publish:
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
if: github.repository_owner == 'docker' if: github.repository_owner == 'docker'
steps: steps:
- -

View File

@ -9,7 +9,7 @@ on:
jobs: jobs:
labeler: labeler:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
permissions: permissions:
contents: read contents: read
pull-requests: write pull-requests: write

View File

@ -25,7 +25,7 @@ on:
jobs: jobs:
run: run:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- -
name: Checkout name: Checkout