Skip to content

move under construction to state and add UI for switching to UC and a… #160

move under construction to state and add UI for switching to UC and a…

move under construction to state and add UI for switching to UC and a… #160

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build-and-test:
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# Checks out a copy of your repository on the ubuntu-latest machine
- name: Fetch source code
uses: actions/checkout@v2
- 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/
- name: Use cachix
uses: cachix/cachix-action@v10
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"