Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Feature/90 widget registry api #234

Feature/90 widget registry api

Feature/90 widget registry api #234

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, develop ]
# 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:
- name: Checkout code
uses: actions/checkout@v2
- uses: cachix/install-nix-action@v18
with:
install_url: https://releases.nixos.org/nix/nix-2.12.0/install
extra_nix_config: |
experimental-features = flakes nix-command
substituters = https://cache.nixos.org https://cache.holo.host https://ci-builds.cachix.org https://holochain-ci.cachix.org
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= cache.holo.host-1:lNXIXtJgS9Iuw4Cu6X0HINLu9sTfcjEntnrgwMQIMcE= cache.holo.host-2:ZJCkX3AUYZ8soxTLfTb60g+F3MkWD7hkH9y8CgqwhDQ= ci-builds.cachix.org-1:fxB0+h/MMlCpXf6hFsQM31YpHbaQoRmcNPNHwDUkXA4= holochain-ci.cachix.org-1:5IUSkZc0aoRS53rfkvH9Kid40NpyjwCMCzwRTXy+QN8=
- name: cachix
run: |
nix-env -iA cachix -f https://cachix.org/api/v1/install
cachix use holochain-ci
- name: Prepare Nix environment
run: |
cd $GITHUB_WORKSPACE
nix develop --command bash -c "pnpm i && echo Completed"
- name: debug-tsc-version
run: |
cd $GITHUB_WORKSPACE/tests
nix develop --command bash -c "npm run tsc-version"
- name: run-tests
run: |
cd $GITHUB_WORKSPACE
nix develop --command bash -c "npm t"