Skip to content

Remove minio from actions workflow #75

Remove minio from actions workflow

Remove minio from actions workflow #75

Workflow file for this run

name: Cypress E2E
on:
- push
jobs:
cypress-run:
runs-on: ubuntu-latest
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: 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