mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-12-26 17:30:34 +01:00
Set strict mode on all CI runs
This commit is contained in:
parent
d828acb704
commit
a0718e6822
2 changed files with 11 additions and 1 deletions
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue