Skip to content

Commit

Permalink
feat: enable again e2e tests job
Browse files Browse the repository at this point in the history
  • Loading branch information
amalv committed Jan 9, 2024
1 parent 6f8bdb8 commit b0f4a56
Showing 1 changed file with 30 additions and 29 deletions.
59 changes: 30 additions & 29 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,32 +60,33 @@ jobs:
run: npm install
- name: Run unit tests
run: npm test
# e2e-tests:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - name: Download deploy URL
# uses: actions/download-artifact@v4
# with:
# name: deploy-url
# - name: Set deploy URL
# id: url
# run: echo "::set-output name=DEPLOY_URL::$(cat deploy-url.txt)"
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 20
# - name: Install dependencies
# run: npm ci
# - name: Install Playwright Browsers
# run: npx playwright install --with-deps
# - name: Run Playwright tests
# run: npx playwright test
# env:
# URL: ${{ steps.url.outputs.DEPLOY_URL }}
# - uses: actions/upload-artifact@v4
# if: always()
# with:
# name: playwright-report
# path: playwright-report/
# retention-days: 30

e2e-tests:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download deploy URL
uses: actions/download-artifact@v4
with:
name: deploy-url
- name: Set deploy URL
id: url
run: echo "::set-output name=DEPLOY_URL::$(cat deploy-url.txt)"
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
env:
URL: ${{ steps.url.outputs.DEPLOY_URL }}
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30

1 comment on commit b0f4a56

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.