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 - uses: actions/checkout@v4
- name: Cache the store - name: Cache the store
uses: ./ uses: ./
with:
strict-mode: true
run-x86_64-linux-untrusted: run-x86_64-linux-untrusted:
name: Run x86_64 Linux, Untrusted name: Run x86_64 Linux, Untrusted
@ -63,6 +65,8 @@ jobs:
trusted-users = root trusted-users = root
- name: Cache the store - name: Cache the store
uses: ./ uses: ./
with:
strict-mode: true
- name: Check the cache isn't enabled - name: Check the cache isn't enabled
run: | run: |
[ $(nix config show substituters) == "https://cache.nixos.org/" ] [ $(nix config show substituters) == "https://cache.nixos.org/" ]
@ -85,6 +89,8 @@ jobs:
narinfo-cache-negative-ttl = 0 narinfo-cache-negative-ttl = 0
- name: Cache the store - name: Cache the store
uses: ./ uses: ./
with:
strict-mode: true
- name: Check the cache for liveness - name: Check the cache for liveness
run: | run: |
.github/workflows/cache-test.sh .github/workflows/cache-test.sh
@ -107,6 +113,8 @@ jobs:
narinfo-cache-negative-ttl = 0 narinfo-cache-negative-ttl = 0
- name: Cache the store - name: Cache the store
uses: ./ uses: ./
with:
strict-mode: true
- name: Check the cache for liveness - name: Check the cache for liveness
run: | run: |
.github/workflows/cache-test.sh .github/workflows/cache-test.sh
@ -130,6 +138,8 @@ jobs:
narinfo-cache-negative-ttl = 0 narinfo-cache-negative-ttl = 0
- name: Cache the store - name: Cache the store
uses: ./ uses: ./
with:
strict-mode: true
- name: Check the cache for liveness - name: Check the cache for liveness
run: | run: |
.github/workflows/cache-test.sh .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. description: A URL pointing to a `magic-nix-cache` binary. Overrides all other `source-*` options.
required: false required: false
strict-mode: 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 default: false
required: false required: false