From 52f39938c007c7202ce6b7df463623f2a04ccc11 Mon Sep 17 00:00:00 2001 From: Anton-Latukha Date: Wed, 2 Dec 2020 16:55:40 +0200 Subject: [PATCH] CI: GitHub: workflow: add project Nixpkgs-integration test --- .../On-Release-Nixpkgs-integration.yml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/On-Release-Nixpkgs-integration.yml diff --git a/.github/workflows/On-Release-Nixpkgs-integration.yml b/.github/workflows/On-Release-Nixpkgs-integration.yml new file mode 100644 index 0000000..2b7e6e0 --- /dev/null +++ b/.github/workflows/On-Release-Nixpkgs-integration.yml @@ -0,0 +1,27 @@ +name: "Direct import & build inside Nixpkgs" + +on: + release: + # created: a draft is saved, or a release or pre-release is published without previously being saved as a draft + types: [ created ] + +jobs: + + build10: + name: "Clean integration test" + runs-on: ubuntu-latest + steps: + - name: "Git checkout" + uses: actions/checkout@v2 + - name: "Local cache" + uses: actions/cache@v2 + with: + path: | + /nix/store + key: ${{ runner.os }}-Nixpkgs-integration-test + - name: "Install Nix" + uses: cachix/install-nix-action@v12 + with: + nix_path: "nixpkgs=channel:nixos-unstable" + - name: "Run Nixpkgs integration test" + uses: Anton-Latukha/test-haskell-nixpkgs-integration-action@v1