Update ubuntu version

pull/2252/head
Jérémy Rialland 2022-08-22 16:16:17 +02:00 committed by Jérémy Rialland
parent b0c0f8e135
commit 8992fd8566
5 changed files with 17 additions and 17 deletions

View File

@ -18,7 +18,7 @@ on:
jobs:
deploy-context:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
outputs:
env-name: ${{ steps.deploy-env.outputs.name }}
api_url: ${{ steps.base-urls.outputs.api }}
@ -39,7 +39,7 @@ jobs:
API_BASE_URL: ${{ needs.deploy-context.outputs.api_url }}
VITE_FR_BASE_URL: ${{ needs.deploy-context.outputs.fr_url }}
VITE_EN_BASE_URL: ${{ needs.deploy-context.outputs.en_url }}
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install
@ -89,7 +89,7 @@ jobs:
env:
VITE_FR_BASE_URL: ${{ needs.deploy-context.outputs.fr_url }}
VITE_EN_BASE_URL: ${{ needs.deploy-context.outputs.en_url }}
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install
@ -109,7 +109,7 @@ jobs:
if-no-files-found: error
build-api:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install
@ -124,7 +124,7 @@ jobs:
deploy-preview:
needs: [build, build-storybook, deploy-context]
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
if: needs.deploy-context.outputs.env-name != 'master'
strategy:
matrix:
@ -160,7 +160,7 @@ jobs:
deploy-prod:
needs: [build, build-storybook, deploy-context]
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
if: needs.deploy-context.outputs.env-name == 'master'
steps:
- uses: actions/checkout@v3
@ -188,7 +188,7 @@ jobs:
timeout-minutes: 1
post-comment:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
if: github.event_name == 'pull_request'
needs: [deploy-preview, deploy-context]
steps:
@ -217,7 +217,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
# We need to specify always() https://github.com/actions/runner/issues/491
if: always() && needs.deploy-preview.result == 'success'
needs: [deploy-context, deploy-preview]
@ -285,7 +285,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
# We need to specify always() https://github.com/actions/runner/issues/491
if: always() && needs.deploy-prod.result == 'success'
needs: [deploy-context, deploy-prod]

View File

@ -5,7 +5,7 @@ on:
jobs:
deploy-context:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
outputs:
env-name: ${{ steps.deploy-env.outputs.name }}
steps:
@ -14,7 +14,7 @@ jobs:
algolia-rm-temp-index:
needs: deploy-context
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install

View File

@ -7,7 +7,7 @@ on:
jobs:
publish:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
package: ['modele-social', 'exoneration-covid']

View File

@ -8,7 +8,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3

View File

@ -3,14 +3,14 @@ on: push
jobs:
lint:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install
- run: yarn lint
typecheck:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install
@ -23,14 +23,14 @@ jobs:
- run: yarn test:type
unit:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install
- run: yarn test
i18n:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install