Skip to content

Promo codes and album saving by default #1294

Promo codes and album saving by default

Promo codes and album saving by default #1294

Workflow file for this run

name: Unit tests
on:
push:
branches:
- main
- features/**
- dependabot/**
pull_request:
branches:
- main
jobs:
client-unit:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- name: Install node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: 'yarn'
- name: Copy env file
run: |
cp .env.example .env
- name: Install dependencies
run: yarn install --immutable
- name: Run tests
run: yarn client:test
api-unit:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Copy env file
run: |
cp .env.example .env
- name: Build docker image
run: docker compose build test
- name: Run tests
run: docker compose run test
- name: Print logs
if: always()
run: |
echo "::group::Log output: blackbird-api-test"
docker compose logs api-test
echo "::endgroup::"
- name: Stop containers
if: always()
run: docker compose --profile=test down