Skip to content

Commit

Permalink
add workflow for e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
uziab committed Oct 27, 2024
1 parent 2c242fa commit 2adae91
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,27 @@ jobs:
env:
SINCE_FLAG: ${{ steps.determine-since-flag.outputs.since_flag }}
run: yarn lerna run ${{ matrix.command }} $SINCE_FLAG

tests_e2e:
name: Run end-to-end tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run Setup
uses: ./.github/actions/setup
with:
npm_token: ${{ secrets.npm_token }}
- id: determine-since-flag
uses: ./.github/actions/determine-lerna-since-flag
- uses: ./.github/actions/download-builds
- name: Install playwright browsers
run: npx playwright install --with-deps
- name: Run tests
run: yarn lerna run test:e2e $SINCE_FLAG --scope "monday-ui-e2e-toolkit"
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: test-results
path: packages/monday-ui-e2e-toolkit/reports
2 changes: 1 addition & 1 deletion packages/testing-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"url": "git+https://github.com/mondaycom/vibe.git"
},
"scripts": {
"test": "npx playwright test",
"test:e2e": "npx playwright test",
"build": "tsc",
"start-server": "cd .. && cd core && yarn storybook"
},
Expand Down

0 comments on commit 2adae91

Please sign in to comment.