Skip to content

Commit

Permalink
chore(): disable e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
talDoFlemis committed Jun 19, 2024
1 parent 41fbe36 commit f0fe7d3
Showing 1 changed file with 54 additions and 54 deletions.
108 changes: 54 additions & 54 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,57 +29,57 @@ jobs:
go-version: "1.22.x"
cache-dependency-path: backend/go.sum

- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Up database
run: task db-up -- -d

- name: Migrate database
run: task backend:migrate

- name: Seed database
run: task backend:seed

- name: Run backend
run: task backend:run-web -- &


- name: Get installed Playwright version
id: playwright-version
run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package-lock.json').dependencies['@playwright/test'].version)")" >> $GITHUB_ENV
working-directory: frontend

- name: Cache playwright binaries
uses: actions/cache@v3
id: playwright-cache
with:
path: |
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}

- name: Install dependencies
run: npm ci
working-directory: frontend

- run: npx playwright install --with-deps
if: steps.playwright-cache.outputs.cache-hit != 'true'
working-directory: frontend

- run: npx playwright install-deps
if: steps.playwright-cache.outputs.cache-hit != 'true'
working-directory: frontend

- name: Run Playwright tests
run: npx playwright test
working-directory: frontend

- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: frontend/playwright-report/
retention-days: 30
# - name: Install Task
# uses: arduino/setup-task@v1
# with:
# version: 3.x
# repo-token: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Up database
# run: task db-up -- -d
#
# - name: Migrate database
# run: task backend:migrate
#
# - name: Seed database
# run: task backend:seed
#
# - name: Run backend
# run: task backend:run-web -- &
#
#
# - name: Get installed Playwright version
# id: playwright-version
# run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package-lock.json').dependencies['@playwright/test'].version)")" >> $GITHUB_ENV
# working-directory: frontend
#
# - name: Cache playwright binaries
# uses: actions/cache@v3
# id: playwright-cache
# with:
# path: |
# ~/.cache/ms-playwright
# key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}
#
# - name: Install dependencies
# run: npm ci
# working-directory: frontend
#
# - run: npx playwright install --with-deps
# if: steps.playwright-cache.outputs.cache-hit != 'true'
# working-directory: frontend
#
# - run: npx playwright install-deps
# if: steps.playwright-cache.outputs.cache-hit != 'true'
# working-directory: frontend
#
# - name: Run Playwright tests
# run: npx playwright test
# working-directory: frontend
#
# - uses: actions/upload-artifact@v4
# if: ${{ !cancelled() }}
# with:
# name: playwright-report
# path: frontend/playwright-report/
# retention-days: 30

0 comments on commit f0fe7d3

Please sign in to comment.