Skip to content
Open
Show file tree
Hide file tree
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
29 changes: 6 additions & 23 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,15 @@ jobs:


- name: Fetch source code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Use Nix
uses: cachix/install-nix-action@v16
with:
nix_path: nixpkgs=channel:nixos-21.05
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Configure Nix substituters
run: |
set -xe
mkdir -p ~/.config/nix/
cp ./.github/nix.conf ~/.config/nix/
uses: cachix/install-nix-action@v22
- name: Use cachix
uses: cachix/cachix-action@v10
uses: cachix/cachix-action@v12
with:
name: holochain-ci

- name: Prepare Nix environment
run: |
nix-env -iA cachix -f https://cachix.org/api/v1/install
cachix use holochain-ci
nix-shell --command "echo Completed"

- name: run-tests
run: |
cd $GITHUB_WORKSPACE
nix-shell . --run "npm ci && npm run test"
nix develop --command npm install
nix develop --command npm ci
nix develop --command npm run test
106 changes: 70 additions & 36 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
inputs = {
nixpkgs.follows = "holochain/nixpkgs";

versions.url = "github:holochain/holochain/?dir=versions/0_1";
holochain = {
url = "github:holochain/holochain";
inputs.versions.url = "github:holochain/holochain/?dir=versions/0_1";
inputs.versions.follows = "versions";
};
};

Expand All @@ -32,4 +33,4 @@
};
};
};
}
}