Skip to content

Commit 9577d9d

Browse files
committed
CI: GitHub: add On-Release-Nixpkgs-integraiton
1 parent fbc1fbd commit 9577d9d

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: "Direct import & build inside Nixpkgs"
2+
3+
on:
4+
release:
5+
# created: a draft is saved, or a release or pre-release is published without previously being saved as a draft
6+
types: [ created ]
7+
8+
jobs:
9+
10+
build10:
11+
name: "Clean integration test"
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
packageRoots: [ ./hnix-store-core, ./hnix-store-remote ]
16+
defaults:
17+
run:
18+
working-directory: "${{ matrix.packageRoots }}"
19+
steps:
20+
- name: "Git checkout"
21+
uses: actions/checkout@v2
22+
- name: "Local cache"
23+
uses: actions/cache@v2
24+
with:
25+
path: |
26+
/nix/store
27+
key: ${{ runner.os }}-Nixpkgs-integration-test
28+
- name: "Install Nix"
29+
uses: cachix/install-nix-action@v12
30+
with:
31+
nix_path: "nixpkgs=channel:nixos-unstable"
32+
- name: "Run Nixpkgs integration test"
33+
uses: Anton-Latukha/test-haskell-nixpkgs-integration-action@v1

0 commit comments

Comments
 (0)