-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: GitHub: add On-Release-Nixpkgs-integraiton
- Loading branch information
1 parent
fbc1fbd
commit 9577d9d
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
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 | ||
strategy: | ||
matrix: | ||
packageRoots: [ ./hnix-store-core, ./hnix-store-remote ] | ||
defaults: | ||
run: | ||
working-directory: "${{ matrix.packageRoots }}" | ||
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 |