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

Test/menu structure docs #1401

Merged
merged 27 commits into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
e93f0a0
[test] remove cypress
Ghislain89 Dec 28, 2023
8db7a41
[test] add test that verifies directory structure for Docs.
Ghislain89 Dec 28, 2023
72f5855
[test] set CI true for all CI builds
Ghislain89 Dec 29, 2023
d156e89
[test] add menu crawler for Docs.
Ghislain89 Dec 29, 2023
5b60a25
[test] update run script for docs and playwright config to run headle…
Ghislain89 Dec 29, 2023
5036b9f
[chore] temp force
Ghislain89 Dec 29, 2023
c5579ea
[chore] update eslint config
Ghislain89 Dec 29, 2023
eebd8f9
[chore] remove cypress from tsconfig
Ghislain89 Dec 29, 2023
e6fce10
[test] clean up spec file
Ghislain89 Dec 29, 2023
2b0ea04
[chore] formatting
Ghislain89 Dec 29, 2023
f19f6c7
[test] move tests to e2e package
Ghislain89 Dec 29, 2023
03cde35
[test] update CI
Ghislain89 Dec 29, 2023
0190ea1
[chore] format and clean up
Ghislain89 Dec 29, 2023
f4b252d
[chore] formatting
Ghislain89 Dec 29, 2023
1c3ccdb
[chore] format
Ghislain89 Dec 29, 2023
de50dfa
remove force
Ghislain89 Dec 29, 2023
ca5ea72
Remove test script
Ghislain89 Dec 29, 2023
6df8b0d
Add docs to e2e tests ci
Ghislain89 Dec 29, 2023
d2b0993
[chore] temp force
Ghislain89 Jan 1, 2024
8de30d9
[chore] remove force
Ghislain89 Jan 2, 2024
8d28044
[chore] Ignore Docs for Changesets, it's an app that does not require…
Ghislain89 Jan 2, 2024
50ca293
[fix] minor fixes for tools tests
Ghislain89 Jan 2, 2024
3741f0f
[chore] add convenience scripts for running docs & tools
Ghislain89 Jan 2, 2024
0ba4e46
[chore] formatting
Ghislain89 Jan 2, 2024
51dbf41
[fix] set workers to 1
Ghislain89 Jan 2, 2024
35c93bd
[chore] add empty changeset
Ghislain89 Jan 2, 2024
b6f59a7
[fix] resolve eslint errors and migrate test-id to data-testid
Ghislain89 Jan 4, 2024
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
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["@kadena/bootstrap-lib", "@kadena/tools"]
"ignore": ["@kadena/bootstrap-lib", "@kadena/tools", "@kadena-dev/e2e-tests", "@kadena/docs"]
Copy link
Contributor

Choose a reason for hiding this comment

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

🔥

}
2 changes: 2 additions & 0 deletions .changeset/modern-bottles-change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
16 changes: 6 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
CI: true

jobs:
build:
Expand Down Expand Up @@ -80,12 +81,12 @@ jobs:
run: pnpm run test:integration --filter ${{ matrix.package }}

end-to-end-tests:
name: E2E - ${{ matrix.package }}
name: E2E - ${{ matrix.app }}
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
package: ['@kadena/tools']
app: ['tools', 'docs']

steps:
- uses: actions/checkout@v4
Expand All @@ -111,17 +112,12 @@ jobs:

# Disable remote caching for this step, otherwise env variables will not be used.
- name: build dApp
run: pnpm --filter ${{ matrix.package }}... build
env:
# Dummy values for faucet transactions.
FAUCET_PUBLIC_KEY: 782127638ab9cc8fa8598ff0120464ceef6f367ddcd616b47afffbdb175dcc5e
FAUCET_PRIVATE_KEY: 93fd78bd1e79a3b593d4732b76050b418aeefa5e4e6ea80f351b4c3a5b0dd19f
run: pnpm turbo build --filter @kadena/${{ matrix.app }}

- name: Run end-to-end tests
run: pnpm run test:e2e -- --project=${{ matrix.package }}
run: pnpm run test:e2e -- -c playwright.${{ matrix.app }}.config.ts
env:
CI: true
TESTOBJECT: ${{ matrix.package }}
TESTOBJECT: ${{ matrix.app }}

- uses: actions/upload-artifact@v3
if: always()
Expand Down
16 changes: 11 additions & 5 deletions packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,20 @@
},
{
"name": "@kadena/docs",
"version": "0.6.3",
"version": "0.8.0",
"private": true,
"path": "packages/apps/docs"
},
{
"name": "@kadena/graph",
"version": "1.0.7",
"name": "@kadena/docs-tools",
"version": "0.1.0",
"private": true,
"path": "packages/tools/docs-tools"
},
{
"name": "@kadena/graph",
"version": "1.0.6",
"private": false,
"path": "packages/apps/graph"
},
{
Expand All @@ -73,7 +79,7 @@
},
{
"name": "@kadena/hd-wallet",
"version": "0.0.1",
"version": "0.2.0",
"private": true,
"path": "packages/libs/hd-wallet"
},
Expand Down Expand Up @@ -109,7 +115,7 @@
},
{
"name": "@kadena/proof-of-us",
"version": "0.1.0",
"version": "0.2.0",
"private": true,
"path": "packages/apps/proof-of-us"
},
Expand Down
1 change: 1 addition & 0 deletions packages/apps/docs/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ require('@rushstack/eslint-config/patch/modern-module-resolution');
module.exports = {
extends: ['@kadena-dev/eslint-config/profile/next'],
parserOptions: { tsconfigRootDir: __dirname },
ignorePatterns: ['playwright.config.ts'],
rules: {
'@typescript-eslint/strict-boolean-expressions': 'off',
'@kadena-dev/typedef-var': 'off',
Expand Down
14 changes: 0 additions & 14 deletions packages/apps/docs/cypress.config.js

This file was deleted.

39 changes: 0 additions & 39 deletions packages/apps/docs/cypress/e2e/consent.cy.ts

This file was deleted.

137 changes: 0 additions & 137 deletions packages/apps/docs/cypress/e2e/layoutfull.cy.ts

This file was deleted.

46 changes: 0 additions & 46 deletions packages/apps/docs/cypress/e2e/layoutlanding.cy.ts

This file was deleted.

Loading
Loading