From 5ee7f3d73e854d979b2c1f5743ca1f8d5d2ca434 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 12 Jul 2020 17:33:08 +0100 Subject: [PATCH] add ci --- .github/workflows/test.yml | 28 +++++++++++++++++++++++++++ pkgs/sops-install-secrets/default.nix | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..91ae942 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: "Test" +on: + pull_request: + push: + schedule: + - cron: '51 2 * * *' +jobs: + tests: + strategy: + matrix: + nixPath: + - nixpkgs=channel:nixos-20.03 + - nixpkgs=channel:nixpkgs-unstable + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: cachix/install-nix-action@v10 + with: + nix_path: "${{ matrix.nixPath }}" + - name: Setup cachix + uses: cachix/cachix-action@v6 + with: + name: mic92 + signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' + - name: Show nixpkgs version + run: nix-instantiate --eval -E '(import {}).lib.version' + - name: Build nix packages + run: nix run nixpkgs.nix-build-uncached -c nix-build-uncached default.nix diff --git a/pkgs/sops-install-secrets/default.nix b/pkgs/sops-install-secrets/default.nix index 0c0bfa6..bf7025f 100644 --- a/pkgs/sops-install-secrets/default.nix +++ b/pkgs/sops-install-secrets/default.nix @@ -1,4 +1,4 @@ -{ buildGoModule, path, pkgs, vendorSha256 }: +{ stdenv, buildGoModule, path, pkgs, vendorSha256 }: buildGoModule { pname = "sops-install-secrets"; version = "0.0.1";