Skip to content

feat(teamplay): pure ORM implementation of signals for local data + S… #1065

feat(teamplay): pure ORM implementation of signals for local data + S…

feat(teamplay): pure ORM implementation of signals for local data + S… #1065

Workflow file for this run

name: Run tests
on:
push:
jobs:
run-tests:
runs-on: ubuntu-latest
services:
mongodb:
image: mongo:latest
ports:
- 27017:27017
redis:
image: redis:latest
ports:
- 6379:6379
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '21.x'
- name: Enable corepack
run: corepack enable
- name: Use yarn@4
run: corepack use yarn@4
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
- name: Run Playwright tests
run: yarn test-e2e
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 15
- name: Discord Notification on Failure. Message with Screenshot
if: failure() && github.ref == 'refs/heads/master'
run: |
FILE_PATH="test_failed_screenshots/screenshot.png"
PAYLOAD="{
\"embeds\": [{
\"title\": \"> Tests failed! Click here to check logs\",
\"description\": \"[${{ github.event.head_commit.message }}](${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }})\",
\"color\": 16711680,
\"url\": \"${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\",
\"author\": {
\"name\": \"${{ github.actor }}\",
\"url\": \"${{ github.server_url }}/${{ github.actor }}\",
\"icon_url\": \"${{ github.server_url }}/${{ github.actor }}.png\"
}
}]
}"
ARGS=(-F "payload_json=$PAYLOAD")
if [ -f "$FILE_PATH" ]; then
ARGS+=(-F "file=@$FILE_PATH")
fi
curl -X POST "${{ secrets.DISCORD_WEBHOOK_STARTUPJS_TESTS_FAILED }}" "${ARGS[@]}"