Skip to content

Commit

Permalink
does this do it?
Browse files Browse the repository at this point in the history
  • Loading branch information
jost-s committed May 13, 2024
1 parent d9c72c6 commit b5dcc1b
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bundling-test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Bundling Test

on:
pull_request:
# pull_request:
push:
branches:
- "main"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/doc-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Documentation Test

on:
workflow_run:
workflows: [Integration Test]
workflows: ["Integration Test"]
types: completed

concurrency:
Expand Down
80 changes: 40 additions & 40 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,51 +23,51 @@ jobs:
- 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: 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: 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: 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 Nix packages
# run: nix develop -c $SHELL -c "holochain --version"

- name: Build test fixture
run: nix develop -c $SHELL -c "./build-fixture.sh"
# - 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: 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: Install JS packages
# run: nix develop -c $SHELL -c "npm ci"

- name: Run tests
run: nix develop -c $SHELL -c "npm t"
# - name: Run tests
# run: nix develop -c $SHELL -c "npm t"

- name: Setup tmate session if a previous step failed
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
timeout-minutes: 10
# - name: Setup tmate session if a previous step failed
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3
# timeout-minutes: 10

0 comments on commit b5dcc1b

Please sign in to comment.