Replace HoverCard with Popover on SuccessAlert #66
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: Cypress E2E | |
on: | |
- push | |
jobs: | |
cypress-run: | |
runs-on: ubuntu-latest | |
services: | |
minio: | |
image: bitnami/minio:latest | |
env: | |
MINIO_ROOT_USER: minioadmin | |
MINIO_ROOT_PASSWORD: minioadmin | |
ports: | |
- 9000:9000 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v2.1.2 | |
with: | |
node-version: 20 | |
- name: Get cache directory | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- name: Cache node_modules | |
uses: actions/cache@v2 | |
id: yarn-cache | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Create S3 Bucket | |
uses: giboow/action-aws-cli@v1 | |
with: | |
args: s3api --endpoint-url http://minio:9000 create-bucket --bucket vh7-uploads | |
env: | |
AWS_ACCESS_KEY_ID: minioadmin | |
AWS_SECRET_ACCESS_KEY: minioadmin | |
- name: Install dependencies | |
run: | | |
yarn install --dev | |
yarn global add wrangler | |
- name: Migrate database | |
working-directory: ./worker | |
run: wrangler d1 migrations apply DB --local | |
- name: Run API | |
working-directory: ./worker | |
run: | | |
wrangler dev --port 8787 > ../worker.log 2>&1 & | |
npx -y wait-on --timeout 30000 http-get://localhost:8787 | |
- name: Build & Run App | |
working-directory: ./app | |
run: | | |
yarn run build --mode testing | |
yarn run preview --mode testing > ../app.log 2>&1 & | |
# npx -y wait-on --timeout 30000 http://localhost:3000 | |
env: | |
VITE_SENTRY_DSN: ${{ secrets.APP_SENTRY_DSN }} | |
- name: Cypress run | |
working-directory: ./app | |
run: yarn run cypress run --e2e --record true | |
env: | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
- name: Print Logs | |
if: ${{ failure() }} | |
run: | | |
cat ./worker.log | |
cat ./app.log |