teams page redesign #308
Workflow file for this run
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: 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 |