coralite 0.6.6 → 0.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.woodpecker/publish.yml +48 -0
- package/.woodpecker/test-e2e.yml +45 -0
- package/.woodpecker/test-script.yml +55 -0
- package/LICENSE +661 -373
- package/change-logs.md +14 -0
- package/lib/html-module.js +4 -0
- package/package.json +3 -3
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
name: Publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [created]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
test:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- name: Checkout
|
|
12
|
+
uses: actions/checkout@v4
|
|
13
|
+
|
|
14
|
+
- uses: pnpm/action-setup@v4
|
|
15
|
+
name: Install pnpm
|
|
16
|
+
with:
|
|
17
|
+
version: 9
|
|
18
|
+
run_install: false
|
|
19
|
+
|
|
20
|
+
- name: Install Node.js
|
|
21
|
+
uses: actions/setup-node@v4
|
|
22
|
+
with:
|
|
23
|
+
node-version: 22
|
|
24
|
+
cache: "pnpm"
|
|
25
|
+
|
|
26
|
+
- name: Install dependencies
|
|
27
|
+
run: pnpm install
|
|
28
|
+
|
|
29
|
+
- name: Lint
|
|
30
|
+
run: pnpm run lint
|
|
31
|
+
|
|
32
|
+
- name: Test
|
|
33
|
+
run: pnpm run test-e2e
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
publish-npm:
|
|
37
|
+
needs: test
|
|
38
|
+
runs-on: ubuntu-latest
|
|
39
|
+
steps:
|
|
40
|
+
- uses: actions/checkout@v4
|
|
41
|
+
- uses: actions/setup-node@v4
|
|
42
|
+
with:
|
|
43
|
+
node-version: 22
|
|
44
|
+
registry-url: https://registry.npmjs.org/
|
|
45
|
+
- run: npm publish
|
|
46
|
+
env:
|
|
47
|
+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
|
48
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
name: Test e2e
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
- push
|
|
5
|
+
- pull_request
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
test:
|
|
9
|
+
timeout-minutes: 60
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
|
|
12
|
+
steps:
|
|
13
|
+
- name: Checkout
|
|
14
|
+
uses: actions/checkout@v4
|
|
15
|
+
|
|
16
|
+
- uses: pnpm/action-setup@v4
|
|
17
|
+
name: Install pnpm
|
|
18
|
+
with:
|
|
19
|
+
version: 9
|
|
20
|
+
run_install: false
|
|
21
|
+
|
|
22
|
+
- name: Install Node.js
|
|
23
|
+
uses: actions/setup-node@v4
|
|
24
|
+
with:
|
|
25
|
+
node-version: 22
|
|
26
|
+
cache: "pnpm"
|
|
27
|
+
|
|
28
|
+
- name: Install dependencies
|
|
29
|
+
run: pnpm install
|
|
30
|
+
|
|
31
|
+
- name: Build HTML from templates
|
|
32
|
+
run: pnpm run html
|
|
33
|
+
|
|
34
|
+
- name: Install Playwright Browser
|
|
35
|
+
run: pnpm exec playwright install firefox --with-deps
|
|
36
|
+
|
|
37
|
+
- name: Run Playwright tests
|
|
38
|
+
run: pnpm exec playwright test
|
|
39
|
+
|
|
40
|
+
- uses: actions/upload-artifact@v4
|
|
41
|
+
if: ${{ !cancelled() }}
|
|
42
|
+
with:
|
|
43
|
+
name: playwright-report
|
|
44
|
+
path: playwright-report/
|
|
45
|
+
retention-days: 30
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
name: Test script
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
- push
|
|
5
|
+
- pull_request
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
linux:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
|
|
11
|
+
steps:
|
|
12
|
+
- name: Checkout
|
|
13
|
+
uses: actions/checkout@v4
|
|
14
|
+
|
|
15
|
+
- uses: pnpm/action-setup@v4
|
|
16
|
+
name: Install pnpm
|
|
17
|
+
with:
|
|
18
|
+
version: 9
|
|
19
|
+
run_install: false
|
|
20
|
+
|
|
21
|
+
- name: Install Node.js
|
|
22
|
+
uses: actions/setup-node@v4
|
|
23
|
+
with:
|
|
24
|
+
node-version: 22
|
|
25
|
+
cache: "pnpm"
|
|
26
|
+
|
|
27
|
+
- name: Install dependencies
|
|
28
|
+
run: pnpm install
|
|
29
|
+
|
|
30
|
+
- name: Build HTML from templates
|
|
31
|
+
run: pnpm run html
|
|
32
|
+
macos:
|
|
33
|
+
runs-on: macos-15
|
|
34
|
+
|
|
35
|
+
steps:
|
|
36
|
+
- name: Checkout
|
|
37
|
+
uses: actions/checkout@v4
|
|
38
|
+
|
|
39
|
+
- uses: pnpm/action-setup@v4
|
|
40
|
+
name: Install pnpm
|
|
41
|
+
with:
|
|
42
|
+
version: 9
|
|
43
|
+
run_install: false
|
|
44
|
+
|
|
45
|
+
- name: Install Node.js
|
|
46
|
+
uses: actions/setup-node@v4
|
|
47
|
+
with:
|
|
48
|
+
node-version: 22
|
|
49
|
+
cache: "pnpm"
|
|
50
|
+
|
|
51
|
+
- name: Install dependencies
|
|
52
|
+
run: pnpm install
|
|
53
|
+
|
|
54
|
+
- name: Build HTML from templates
|
|
55
|
+
run: pnpm run html
|