Skip to content

Commit

Permalink
ci: add component testing by cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Jan 27, 2024
1 parent be28334 commit 5154863
Show file tree
Hide file tree
Showing 43 changed files with 436 additions and 1,408 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/e2e-cypress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: ⚙️ Component testing
on:
pull_request:
push:
branches:
- main

jobs:
test:
if: ${{ !contains(github.head_ref, 'release/') }}
runs-on: ubuntu-latest
name: cypress
steps:
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- run: npx nx component-test demo-cypress

concurrency:
group: e2e-cypress-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ quality-check
dist
**/cypress/screenshots
**/cypress/snapshots
**/cypress/logs
**/cypress/downloads
.ssl
RELEASE_BODY.md
*tsbuildinfo
Expand Down
355 changes: 162 additions & 193 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"build:ssr": "nx build demo && nx run demo:server:production",
"prerender": "nx run demo:prerender",
"test": "nx run-many --target test --all --output-style=stream --parallel=1",
"test:e2e": "nx e2e-ui demo-cypress",
"cy:open": "cypress open --project ./projects/demo-cypress/",
"*** Workflow ***": "",
"stylelint": "stylelint '**/*.{less,css}' --config package.json",
"lint": "eslint .",
Expand Down Expand Up @@ -124,6 +124,7 @@
"@cypress/webpack-batteries-included-preprocessor": "3.0.2",
"@cypress/webpack-preprocessor": "6.0.1",
"@nx/angular": "17.2.8",
"@nx/cypress": "17.2.8",
"@nx/jest": "17.2.8",
"@nx/node": "17.2.8",
"@nx/workspace": "17.2.8",
Expand Down

This file was deleted.

Loading

0 comments on commit 5154863

Please sign in to comment.