Files
matrix-docker-ansible-deploy/.github/workflows/matrix.yml
T
Slavi PantaleevandClaude Opus 5.5 f10c602f5f Fix Arch partial upgrade in the prek CI job
The job refreshed the package database (pacman -Sy) and later installed
packages without upgrading the image's existing ones. Once the
repositories moved on (python now pulling in the new openssl-3 package),
this partial upgrade failed with file conflicts. Install everything in one
full upgrade (pacman -Syu) instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 07:19:07 +02:00

46 lines
1.5 KiB
YAML

# SPDX-FileCopyrightText: 2022 Marko Weltzer
# SPDX-FileCopyrightText: 2022 Nikita Chernyi
# SPDX-FileCopyrightText: 2022 Slavi Pantaleev
#
# SPDX-License-Identifier: AGPL-3.0-or-later
---
name: Matrix CI
on: [push, pull_request] # yamllint disable-line rule:truthy
permissions:
contents: read
jobs:
prek:
name: Run prek hooks
runs-on: ubuntu-latest
container:
image: docker.io/archlinux:base-devel
steps:
# git must be installed before checkout so it does a proper clone
# (with .git directory) instead of a tarball download.
# Always upgrade (-Syu): Arch does not support partial upgrades, and
# installing packages from a refreshed database onto the image's older
# packages fails whenever the repositories have moved on.
- name: Install dependencies
run: pacman -Syu --noconfirm --needed git just mise python
- name: Check out
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Restore prek cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
with:
path: var/prek
key: arch-prek-v1-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Run prek hooks
run: |
# The checkout action sets safe.directory using its own bundled
# git, which is separate from the pacman-installed git that prek uses.
git config --global --add safe.directory "$GITHUB_WORKSPACE"
just prek-run-on-all