From 943a92d48d12b07536cdfd1d0cc07d0dd983386e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 14 Apr 2020 12:33:22 +0100 Subject: [PATCH 1/2] add shell.nix for development --- shell.nix | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 00000000..bd20b9b6 --- /dev/null +++ b/shell.nix @@ -0,0 +1,5 @@ +{ pkgs ? import {} }: +with pkgs; +mkShell { + nativeBuildInputs = [ yarn ]; +} From 36fc8c525417623e5ef24704eeef5ba0874ce38e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 14 Apr 2020 12:36:47 +0100 Subject: [PATCH 2/2] Make cachix install quiet Since this mainly downloads dependencies, removing it, removes some noise. --- dist/main/index.js | 2 +- src/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/main/index.js b/dist/main/index.js index f49fb1c8..6c991a67 100644 --- a/dist/main/index.js +++ b/dist/main/index.js @@ -986,7 +986,7 @@ function run() { const authToken = core.getInput('authToken'); const cachixExecutable = "/nix/var/nix/profiles/per-user/runner/profile/bin/cachix"; core.startGroup('Cachix: installing'); - yield exec.exec('nix-env', ['-iA', 'cachix', '-f', 'https://cachix.org/api/v1/install']); + yield exec.exec('nix-env', ['--quiet', '-iA', 'cachix', '-f', 'https://cachix.org/api/v1/install']); core.endGroup(); // for private caches if (authToken !== "") { diff --git a/src/main.ts b/src/main.ts index 437d0d9b..3f9587dc 100644 --- a/src/main.ts +++ b/src/main.ts @@ -17,7 +17,7 @@ async function run() { const cachixExecutable = "/nix/var/nix/profiles/per-user/runner/profile/bin/cachix"; core.startGroup('Cachix: installing') - await exec.exec('nix-env', ['-iA', 'cachix', '-f', 'https://cachix.org/api/v1/install']); + await exec.exec('nix-env', ['--quiet', '-iA', 'cachix', '-f', 'https://cachix.org/api/v1/install']); core.endGroup() // for private caches