Skip to content

teams page redesign #308

teams page redesign

teams page redesign #308

name: Unit and screenshot tests
on:
pull_request:
jobs:
test:
name: Unit and screenshot tests
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "18"
cache: "yarn"
- name: Install dependencies
run: yarn install
- name: Run unit tests
run: yarn test
- name: Build Docker image
run: docker build -t playwright-tests -f Dockerfile.tests .
- name: Run screenshot tests on Docker
run: docker run --rm -e CI=true -v $(pwd)/test-results:/app/test-results playwright-tests
- name: Archive artifacts
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: screenshots-report
path: test-results