Skip to content

Commit 6d9ac29

Browse files
Add e2e tests to ci
1 parent 2efd5e5 commit 6d9ac29

File tree

6 files changed

+386
-8
lines changed

6 files changed

+386
-8
lines changed

.github/workflows/scala3doc.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ jobs:
5353

5454
- name: Generate testcases documentation
5555
run: ./project/scripts/sbt scala3doc/generateTestcasesDocumentation
56+
57+
- name: Run e2e tests
58+
- uses: actions/setup-node@v2
59+
with:
60+
node-version: 12
61+
check-latest: true
62+
- run: npm --prefix ./scala3doc/e2e ci
63+
- run: npm --prefix ./scala3doc/e2e run ci
5664

5765
- name: Generate Scala 3 documentation
5866
run: ./project/scripts/sbt scala3doc/generateScala3Documentation

scala3doc/.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# root where we generate documentation
2-
output
2+
output
3+
4+
e2e/cypress/videos

scala3doc/e2e/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
- install Node.js
66
- run `npm i`
77

8-
### Running tests
8+
### Running tests locally
99

1010
- generate the test docs: `sbt scala3doc/generateTestcasesDocumentation`
11-
- run the web server in the `output` directory: `python3 -m http.server 8080`
12-
- run `npm run cypress:open` to see the cypress UI or `npm run cypress:run` to run tests heedlessly
11+
- run the web server in the `npm run serve`
12+
- run `npm run cypress:open` to see the cypress UI or `npm run cypress:run` to run tests headlessly

scala3doc/e2e/cypress.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
{}
1+
{
2+
"video": false
3+
}

0 commit comments

Comments
 (0)