blog/.forgejo/workflows/test.yaml
Sergei Poljanski e4bba4e1d7
All checks were successful
Test / check (push) Successful in 5s
Build and Deploy to Production / check (push) Successful in 5s
Build and Deploy to Production / build (push) Successful in 13s
Build and Deploy to Production / deploy (push) Successful in 19s
Pin exact versions of images and actions
Floating tags (17-alpine, 3.4-slim, nginx:alpine, :latest, :debug, @v7)
change under a deploy without anyone deciding it: the storage deploy
moved Postgres to 17.12 on its own because of postgres:17-alpine. Pin
every image and action to its exact current version, so each change
arrives as a reviewed Renovate PR and a rollback is a revert.

Assisted-by: Claude:opus-5-5
2026-11-13 02:46:53 +04:00

28 lines
658 B
YAML

name: Test
on:
push:
branches-ignore:
- main
jobs:
check:
runs-on: nix-latest
# Settings via env, not /etc/nix/nix.conf: in the image that is a
# symlink into /nix/store, which the runner's nix-store volume
# shadows, so it dangles once the image moves on.
env:
NIX_CONFIG: |
experimental-features = nix-command flakes
build-users-group =
sandbox = false
steps:
- name: Prepare container for actions
run: |
nix-env -iA nixpkgs.nodejs_22
- name: Checkout
uses: actions/checkout@v7.0.1
- name: Build site
run: nix develop -c zola build