ci: run jobs in Debian trixie (git 2.47+) — sha256 git object format needs git >= 2.42
This commit is contained in:
parent
1d4eccb6d3
commit
0a3ae36bf1
1 changed files with 15 additions and 5 deletions
|
|
@ -5,17 +5,23 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
|
# The repository uses the sha256 git object format. Git < 2.42 cannot speak
|
||||||
|
# the sha256 wire protocol, so we must run the job in a container whose Debian
|
||||||
|
# base has a recent-enough git (bookworm ships 2.39, trixie ships 2.47+).
|
||||||
jobs:
|
jobs:
|
||||||
json-schema:
|
json-schema:
|
||||||
name: JSON Schema (ajv)
|
name: JSON Schema (ajv)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: node:24-trixie-slim
|
||||||
steps:
|
steps:
|
||||||
- name: Install prerequisites in container
|
- name: Install git + curl in container
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
command -v curl >/dev/null || { apt-get update && apt-get install -y curl ca-certificates; }
|
apt-get update
|
||||||
|
apt-get install -y --no-install-recommends git curl ca-certificates
|
||||||
|
git --version
|
||||||
node --version
|
node --version
|
||||||
npm --version
|
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
@ -61,11 +67,15 @@ jobs:
|
||||||
rego:
|
rego:
|
||||||
name: Rego (opa fmt + opa test)
|
name: Rego (opa fmt + opa test)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: debian:trixie-slim
|
||||||
steps:
|
steps:
|
||||||
- name: Install prerequisites in container
|
- name: Install git + curl in container
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
command -v curl >/dev/null || { apt-get update && apt-get install -y curl ca-certificates; }
|
apt-get update
|
||||||
|
apt-get install -y --no-install-recommends git curl ca-certificates
|
||||||
|
git --version
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue