Use a specific version of Ubuntu in workflows

Using ubuntu-latest might result in incompatibilities when this image
changes to a different version of Ubuntu. For example, the Ubuntu 24.04
image no longer includes imagemagick, meaning that we'll have to install
it manually when using Ubuntu 24.04.
This commit is contained in:
Javi Martín
2024-10-14 13:47:28 +02:00
parent d3a039040c
commit 26ebe619e3
6 changed files with 7 additions and 7 deletions

View File

@@ -11,6 +11,6 @@ jobs:
assign-author: assign-author:
name: Auto-assign pull request author name: Auto-assign pull request author
if: github.repository_owner == 'consuldemocracy' if: github.repository_owner == 'consuldemocracy'
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- uses: toshimaru/auto-author-assign@v2.1.1 - uses: toshimaru/auto-author-assign@v2.1.1

View File

@@ -12,7 +12,7 @@ permissions:
jobs: jobs:
schema: schema:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
services: services:
postgres: postgres:
image: postgres:13.16 image: postgres:13.16

View File

@@ -6,7 +6,7 @@ permissions:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@@ -6,7 +6,7 @@ permissions:
jobs: jobs:
linters: linters:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:

View File

@@ -3,7 +3,7 @@ on: [pull_request]
jobs: jobs:
pronto: pronto:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
if: github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name && github.actor != 'dependabot[bot]' if: github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name && github.actor != 'dependabot[bot]'
steps: steps:
- name: Checkout code - name: Checkout code

View File

@@ -15,7 +15,7 @@ env:
jobs: jobs:
tests: tests:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
timeout-minutes: 60 timeout-minutes: 60
services: services:
postgres: postgres:
@@ -76,7 +76,7 @@ jobs:
coveralls: coveralls:
permissions: permissions:
contents: none contents: none
runs-on: ubuntu-latest runs-on: ubuntu-22.04
needs: tests needs: tests
steps: steps:
- name: Finish coveralls - name: Finish coveralls