Skip to content

Appwebsocket authentication token from launcher env #160

Appwebsocket authentication token from launcher env

Appwebsocket authentication token from launcher env #160

name: Integration Test
on:
pull_request:
push:
branches:
- "develop"
- "main"
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
integration-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Check out source code
uses: actions/checkout@v4
- name: Install nix
uses: cachix/install-nix-action@v25
with:
install_url: https://releases.nixos.org/nix/nix-2.17.0/install
- name: Set up cachix
uses: cachix/cachix-action@v14
with:
name: holochain-ci
- name: Restore test zome build
uses: actions/cache/restore@v4
env:
cache-name: test-zome
with:
path: |
.cargo
test/e2e/fixture/zomes/foo/target
test/e2e/fixture2/coordinator2/target
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('Cargo.lock') }}
- name: Build Nix packages
run: nix develop -c $SHELL -c "holochain --version"
- name: Build test fixture
run: nix develop -c $SHELL -c "./build-fixture.sh"
- name: Save test zome build
uses: actions/cache/save@v4
env:
cache-name: test-zome
with:
path: |
.cargo
test/e2e/fixture/zomes/foo/target
test/e2e/fixture2/coordinator2/target
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('Cargo.lock') }}
- name: Install JS packages
run: nix develop -c $SHELL -c "npm ci"
- name: Run tests
run: nix develop --override-input versions/holochain "github:holochain/holochain/holochain-0.3.0-beta-dev.48" -c $SHELL -c "npm t"
- name: Setup tmate session if a previous step failed
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
timeout-minutes: 10