mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-12-27 01:30:35 +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
|
- 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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue