Set strict mode on all CI runs

This commit is contained in:
Luc Perkins 2024-05-17 17:57:10 -03:00
parent d828acb704
commit a0718e6822
No known key found for this signature in database
GPG key ID: 16DB1108FB591835
2 changed files with 11 additions and 1 deletions

View file

@ -43,6 +43,8 @@ jobs:
- uses: actions/checkout@v4
- name: Cache the store
uses: ./
with:
strict-mode: true
run-x86_64-linux-untrusted:
name: Run x86_64 Linux, Untrusted
@ -63,6 +65,8 @@ jobs:
trusted-users = root
- name: Cache the store
uses: ./
with:
strict-mode: true
- name: Check the cache isn't enabled
run: |
[ $(nix config show substituters) == "https://cache.nixos.org/" ]
@ -85,6 +89,8 @@ jobs:
narinfo-cache-negative-ttl = 0
- name: Cache the store
uses: ./
with:
strict-mode: true
- name: Check the cache for liveness
run: |
.github/workflows/cache-test.sh
@ -107,6 +113,8 @@ jobs:
narinfo-cache-negative-ttl = 0
- name: Cache the store
uses: ./
with:
strict-mode: true
- name: Check the cache for liveness
run: |
.github/workflows/cache-test.sh
@ -130,6 +138,8 @@ jobs:
narinfo-cache-negative-ttl = 0
- name: Cache the store
uses: ./
with:
strict-mode: true
- name: Check the cache for liveness
run: |
.github/workflows/cache-test.sh

View file

@ -52,7 +52,7 @@ inputs:
description: A URL pointing to a `magic-nix-cache` binary. Overrides all other `source-*` options.
required: false
strict-mode:
description: "Whether to fail when any errors are thrown. Used only to test the Action; do not set this in your own workflows."
description: Whether to fail when any errors are thrown. Used only to test the Action; do not set this in your own workflows.
default: false
required: false