Skip to content

[Test] Integration #608

[Test] Integration

[Test] Integration #608

name: "[Test] Integration"
on:
schedule:
- cron: 20 9 * * *
workflow_dispatch:
inputs:
ref:
description: "Which ref (branch or tag) to pull from ?"
required: false
default: develop
filter:
description: "passed to a jest test name filtering"
required: false
default: ""
jobs:
integration-tests:
name: "Integration Tests"
env:
NODE_OPTIONS: "--max-old-space-size=7168"
FORCE_COLOR: 3
CI_OS: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.ref || github.ref }}
fetch-depth: 0
- name: Setup the toolchain
uses: ./tools/actions/composites/setup-toolchain
with:
upgrade_npm: ${{ matrix.os == 'windows-latest' }}
aws-access-key: ${{ secrets.AWS_S3_CACHE_ACCESS_KEY }}
aws-secret-key: ${{ secrets.AWS_S3_CACHE_SECRET_KEY }}
- name: Install node-gyp globally
if: runner.os == 'Windows'
run: |
pnpm add -g node-gyp
- name: Install dependencies
run: pnpm i --filter="live-common..." --filter="ledger-live"
- name: Build
run: pnpm build:llc
- name: Test
shell: bash
env:
FILTER: ${{ inputs.filter }}
VERBOSE_FILE: logs.txt
run: |
pnpm common ci-test-integration $FILTER
git diff --exit-code libs/ledger-live-common/src
- name: (On Failure) Upload live-common snapshots and source
uses: actions/upload-artifact@v3
if: failure()
with:
name: ${{ format('live-common-src-{0}', matrix.os) }}
path: |
libs/ledger-live-common/src
- name: (On Failure) Upload logs
uses: actions/upload-artifact@v3
if: failure()
with:
name: logs.txt
path: logs.txt