Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Replace cypress with uvu, linkedom and cssom #60

Merged
merged 7 commits into from
Feb 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 25 additions & 18 deletions .github/workflows/cypress.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Cypress Tests
name: Integration tests

on:
pull_request:
Expand All @@ -11,25 +11,32 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v2

- name: Install monorepo tools
- name: Install monorepo dependencies
run: npm i

- name: Build PRPL modules
run: npm run bootstrap && npm run build:all

- name: Test CommonJS interface
uses: cypress-io/github-action@v2
with:
working-directory: tests/test-site
start: npm run dev:cjs
project: ..

- name: Kill dev server
run: sudo kill -9 `sudo lsof -t -i:8000`

- name: Test ESM interface
uses: cypress-io/github-action@v2
with:
working-directory: tests/test-site
start: npm run dev:mjs
project: ..
- name: Install integration test dependencies
working-directory: tests/integration
run: npm i

- name: Install test site dependencies
working-directory: tests/test-site
run: npm i

- name: Build CJS test site
working-directory: tests/test-site
run: npm run build:cjs

- name: Run CJS integration tests
working-directory: tests/integration
run: npm run test

- name: Build ESM test site
working-directory: tests/test-site
run: npm run build:mjs

- name: Run ESM integration tests
working-directory: tests/integration
run: npm run test
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ dist
*.log
*.local
.idea
.vscode
tests/cypress/videos/
.vscode
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ lerna.json
CHANGELOG.md
README.md
*.config.js
tests/cypress.json
4 changes: 0 additions & 4 deletions tests/cypress.json

This file was deleted.

5 changes: 0 additions & 5 deletions tests/cypress/fixtures/example.json

This file was deleted.

102 changes: 0 additions & 102 deletions tests/cypress/integration/core.spec.js

This file was deleted.

21 changes: 0 additions & 21 deletions tests/cypress/integration/plugin-code-highlight.spec.js

This file was deleted.

32 changes: 0 additions & 32 deletions tests/cypress/integration/plugin-css-imports.spec.js

This file was deleted.

28 changes: 0 additions & 28 deletions tests/cypress/integration/plugin-html-imports.spec.js

This file was deleted.

130 changes: 0 additions & 130 deletions tests/cypress/integration/plugin-rss.spec.js

This file was deleted.

Loading