Update orbitdb #978
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Backend unit tests | |
on: | |
pull_request: | |
jobs: | |
unit-tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, macos-13, windows-2019] | |
steps: | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
backend: | |
- 'packages/backend/**' | |
- name: "Skip tests" | |
if: steps.filter.outputs.backend == 'false' | |
run: | | |
echo "Skipping test run" | |
exit 0 | |
- name: "Print OS" | |
if: steps.filter.outputs.backend == 'true' | |
run: echo ${{ matrix.os }} | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
if: steps.filter.outputs.backend == 'true' | |
with: | |
submodules: 'recursive' | |
- name: "Setup environment" | |
if: steps.filter.outputs.backend == 'true' | |
uses: ./.github/actions/setup-env | |
with: | |
bootstrap-packages: "@quiet/eslint-config,@quiet/logger,@quiet/common,@quiet/types,@quiet/state-manager,@quiet/backend,@quiet/identity,backend-bundle,helia" | |
- name: "Unit tests" | |
if: steps.filter.outputs.backend == 'true' | |
run: lerna run test-ci --scope @quiet/backend --stream | |
long-running-tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04] | |
steps: | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
backend: | |
- 'packages/backend/**' | |
- name: "Skip tests" | |
if: steps.filter.outputs.backend == 'false' | |
run: | | |
echo "Skipping test run" | |
exit 0 | |
- name: "Print OS" | |
if: steps.filter.outputs.backend == 'true' | |
run: echo ${{ matrix.os }} | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
if: steps.filter.outputs.backend == 'true' | |
with: | |
submodules: 'recursive' | |
- name: "Setup environment" | |
if: steps.filter.outputs.backend == 'true' | |
uses: ./.github/actions/setup-env | |
with: | |
bootstrap-packages: "@quiet/eslint-config,@quiet/logger,@quiet/common,@quiet/types,@quiet/state-manager,@quiet/backend,@quiet/identity,backend-bundle,helia" | |
- name: "Unit tests" | |
if: steps.filter.outputs.backend == 'true' | |
run: lerna run test-ci-long-running --scope @quiet/backend --stream | |
unit-tests-with-tor: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04] | |
steps: | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
backend: | |
- 'packages/backend/**' | |
- name: "Skip tests" | |
if: steps.filter.outputs.backend == 'false' | |
run: | | |
echo "Skipping test run" | |
exit 0 | |
- name: "Print OS" | |
if: steps.filter.outputs.backend == 'true' | |
run: echo ${{ matrix.os }} | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
if: steps.filter.outputs.backend == 'true' | |
with: | |
submodules: 'recursive' | |
- name: "Setup environment" | |
if: steps.filter.outputs.backend == 'true' | |
uses: ./.github/actions/setup-env | |
with: | |
bootstrap-packages: "@quiet/eslint-config,@quiet/logger,@quiet/common,@quiet/types,@quiet/state-manager,@quiet/backend,@quiet/identity,backend-bundle,helia" | |
- name: "Unit tests" | |
if: steps.filter.outputs.backend == 'true' | |
run: lerna run test-ci-tor --scope @quiet/backend --stream |