Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spike: Convert try-o-rama tests to Sweettest [WIP] #92

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 51 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ concurrency:
cancel-in-progress: true

jobs:
build-and-test:
tryorama:
timeout-minutes: 300
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -22,7 +23,7 @@ jobs:
uses: actions/checkout@v3

- name: Install nix
uses: cachix/install-nix-action@v19
uses: cachix/install-nix-action@v20

- name: Set up cachix
uses: cachix/cachix-action@v12
Expand All @@ -33,12 +34,57 @@ jobs:
uses: actions/cache@v2
with:
path: |
.cargo
.cargo/bin/
.cargo/registry/index/
.cargo/registry/cache/
.cargo/git/db/
target
key: ${{ runner.os }}-build-${{ hashFiles('Cargo.lock') }}

- name: Build Happ
run: nix develop -c $SHELL -c "npm ci && npm run build:happ"
- name: Install nix packages
run: nix develop -c $SHELL -c "echo Nix packages installed"

- name: Install JS packages
run: nix develop -c $SHELL -c "npm ci"

- name: Test with tryorama
run: nix develop -c $SHELL -c "npm test"

sweettest:
timeout-minutes: 300
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install nix
uses: cachix/install-nix-action@v20

- name: Set up cachix
uses: cachix/cachix-action@v12
with:
name: holochain-ci

- name: Cache Cargo and Rust Build
uses: actions/cache@v2
with:
path: |
.cargo/bin/
.cargo/registry/index/
.cargo/registry/cache/
.cargo/git/db/
target
key: ${{ runner.os }}-build-${{ hashFiles('Cargo.lock') }}

- name: Install nix packages
run: nix develop -c $SHELL -c "echo Nix packages installed"

- name: Install JS packages
run: nix develop -c $SHELL -c "npm ci"

- name: Test with tryorama
run: nix develop -c $SHELL -c "npm run test:sweet"
Loading