Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Nixpkgs integration test #89

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/On-Release-Nixpkgs-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "Direct import & build inside Nixpkgs"

on:
pull_request:
push:
branches:
- master
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
continue-on-error: true
strategy:
matrix:
packageRoot: [ hnix-store-core, hnix-store-remote ]
defaults:
run:
working-directory: "./${{ matrix.packageRoot }}"
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