Skip to content

Commit

Permalink
replace old web with web-new
Browse files Browse the repository at this point in the history
  • Loading branch information
egekorkan committed Apr 5, 2024
1 parent c3f8e66 commit 9474848
Show file tree
Hide file tree
Showing 74 changed files with 9,177 additions and 24,639 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: lerna bootstrap --no-ci

- name: Test
run: lerna run test --no-bail --stream --ignore=packages/web
run: lerna run test --no-bail --stream

- name: TD test
run: node packages/cli/index.js -i examples/td/*/*.jsonld
Expand Down
44 changes: 0 additions & 44 deletions .github/workflows/visual-ci-new.yaml

This file was deleted.

33 changes: 19 additions & 14 deletions .github/workflows/visual-ci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Visual Testing Pipeline
name: Web-New Visual Testing Pipeline

on:
pull_request:
Expand All @@ -14,26 +14,31 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Use Node.js 16
uses: actions/setup-node@v1
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: "16.x"
node-version: "18.x"

- name: Use lerna
run: npm install -g [email protected]

- name: Bootstrap
run: lerna bootstrap --no-ci

- name: Visual Test

- name: Visual Tests
timeout-minutes: 30
run: |
cd ./packages/web
npm test
- name: Upload test screenshots
uses: actions/upload-artifact@v2
cd ./packages/web
npm install
npx playwright install chromium firefox
npm run build
npm test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright screenshots and downloads
path: packages/web/test_results
name: playwright-report
path: ./packages/web/playwright-report/
retention-days: 30
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ eslint-results.sarif

# junit test results
junit-tests.xml
packages/web-new/test-results
packages/web-new/playwright-report
packages/web/test-results
packages/web/playwright-report
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ Reusable packages:
End Product Packages:

- [cli](./packages/cli/): The CLI package wraps the above packages in a way they can be used from the command line. Additionally, it allows the functionalities of the other packages to be executed on a set of TDs. [NPM](https://www.npmjs.com/package/@thing-description-playground/cli).
- [web](./packages/web/): The Web package wraps the above packages in a way they can be used from a browser interface. You can host/adapt your own browser version of the playground. It is online at [http://plugfest.thingweb.io/playground/](http://plugfest.thingweb.io/playground/)[NPM](https://www.npmjs.com/package/@thing-description-playground/web).
- [web](./packages/web/): The Web package wraps the above packages in a way they can be used from a browser interface. You can host/adapt your own browser version of the playground. It is online at [https://playground.thingweb.io/](https://playground.thingweb.io/)[NPM](https://www.npmjs.com/package/@thing-description-playground/web).

## Examples

Examples are included in the [core](./packages/core/examples) and in the [examples folder](./examples) at the root of the project.

## Browser-based Thing Description Validation

- Online: It is hosted [here](http://plugfest.thingweb.io/playground/)
- Online: It is hosted [here](https://playground.thingweb.io/)

- Simply paste a TD in the text field and click validate
- Safari browser has unexpected behavior with JSON-LD documents
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"packages": ["packages/*"],
"version": "independent",
"ignore": ["packages/web-new"]
"ignore": ["packages/web"]
}
135 changes: 0 additions & 135 deletions packages/web-new/README.md

This file was deleted.

Loading

0 comments on commit 9474848

Please sign in to comment.