Skip to content

fix incorrect assertion in units test #24

fix incorrect assertion in units test

fix incorrect assertion in units test #24

Workflow file for this run

name: Release
on:
push:
tags:
- 'happ-[0-9]+.[0-9]+.[0-9]+**'
# on:
# push:
# branches: [ sprout ]
# pull_request:
# branches: [ sprout ]
jobs:
# the create-release would be used once we want to create a specific release based on if the commit has a tag
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: taiki-e/create-gh-release-action@v1
with:
# per https://github.com/taiki-e/create-gh-release-action/blob/f8e035329c036c64d0ac5edc2852fffa67d7d6f4/action.yml#L19
prefix: happ
env:
# (required)
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build:
runs-on: ubuntu-latest
steps:
- name: Fetch source code
uses: actions/checkout@v3
# this should be with Cargo.lock files
# technically, but this repo doesn't have them checked in to git
- uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
.cargo/bin/
.cargo/registry/index/
.cargo/registry/cache/
.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
- name: Use Nix
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
- 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/cachix-action@v10
with:
name: ci-builds
authToken: "${{ secrets.CACHIX_TOKEN }}"
- name: Prepare Nix environment
run: nix develop --command bash -c "echo Completed"
- name: Install PNPM and dependencies
run: nix develop --command bash -c "pnpm install --no-frozen-lockfile"
- name: Build WASM, dnas, happs
run: |
RELEASE="${GITHUB_REF#refs/tags/}"
RELEASE_DOWNLOAD_URL="https:\/\/github.com\/${GITHUB_REPOSITORY%/*}\/${GITHUB_REPOSITORY#*/}\/releases\/download\/${RELEASE}"
nix develop --command bash -c 'pnpm run build:holochain:release'
- name: Build explorer UI and webhapp package
run: nix develop --command bash -c 'pnpm run build:webhapp'
- name: upload bundles
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload "${GITHUB_REF#refs/tags/}" "bundles/web-app/hrea.webhapp" --clobber
gh release upload "${GITHUB_REF#refs/tags/}" "bundles/app/full_suite/hrea_suite.happ" --clobber
gh release upload "${GITHUB_REF#refs/tags/}" "bundles/dna/agent/hrea_agent.dna" --clobber
gh release upload "${GITHUB_REF#refs/tags/}" "bundles/dna/agreement/hrea_agreement.dna" --clobber
gh release upload "${GITHUB_REF#refs/tags/}" "bundles/dna/observation/hrea_observation.dna" --clobber
gh release upload "${GITHUB_REF#refs/tags/}" "bundles/dna/plan/hrea_plan.dna" --clobber
gh release upload "${GITHUB_REF#refs/tags/}" "bundles/dna/planning/hrea_planning.dna" --clobber
gh release upload "${GITHUB_REF#refs/tags/}" "bundles/dna/proposal/hrea_proposal.dna" --clobber
gh release upload "${GITHUB_REF#refs/tags/}" "bundles/dna/specification/hrea_specification.dna" --clobber