separate svgcanvas from svgedit
now you can use directlt svgcanvas. see readme.md * configure workspaces * move svgcanvas to packages folder * move utils to common and paint to svgcanvas * make svgcanvas a dependency of svgedit * update deps * workspaces requires npm 7 at least so the ci needs a new node version * update github actions to V3 * update snapshots using custom svg exports * remove unmaintained cypress snapshot plugin * new github action to add coverage in PR * Update onpushandpullrequest.yml * svgcanvas v7.1.6
This commit is contained in:
20
.github/comment-template.md
vendored
Normal file
20
.github/comment-template.md
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
## Coverage Report
|
||||
|
||||
Commit: [{{short_commit_sha}}]({{commit_link}})
|
||||
Base: [{{base_ref}}@{{base_short_commit_sha}}]({{base_commit_link}})
|
||||
|
||||
| Type | Base | This PR |
|
||||
|---------------------------|--------------------------------------------|------------------------------------------------------------------------------------|
|
||||
| Total Statements Coverage | {{base_total_statements_coverage_percent}} | {{total_statements_coverage_percent}} ({{total_statements_coverage_percent_diff}}) |
|
||||
| Total Branches Coverage | {{base_total_branches_coverage_percent}} | {{total_branches_coverage_percent}} ({{total_branches_coverage_percent_diff}}) |
|
||||
| Total Functions Coverage | {{base_total_functions_coverage_percent}} | {{total_functions_coverage_percent}} ({{total_functions_coverage_percent_diff}}) |
|
||||
| Total Lines Coverage | {{base_total_lines_coverage_percent}} | {{total_lines_coverage_percent}} ({{total_lines_coverage_percent_diff}}) |
|
||||
|
||||
<details>
|
||||
<summary>Details (changed files)</summary>
|
||||
{{changed_files_coverage_table}}
|
||||
</details>
|
||||
<details>
|
||||
<summary>Details (all files)</summary>
|
||||
{{files_coverage_table}}
|
||||
</details>
|
||||
32
.github/workflows/onpullrequest.yml
vendored
Normal file
32
.github/workflows/onpullrequest.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Node CI
|
||||
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16.x
|
||||
- name: npm install, test and lint
|
||||
run: |
|
||||
npm ci
|
||||
npm run build --workspace=packages/svgcanvas
|
||||
npm run lint
|
||||
npm run test
|
||||
env:
|
||||
CI: true
|
||||
- name: Report NYC coverage
|
||||
uses: sidx1024/report-nyc-coverage-github-action@v1.2.6
|
||||
with:
|
||||
# Path to coverage file generated by "nyc report".
|
||||
coverage_file: "coverage/coverage-summary.json"
|
||||
base_coverage_file: "coverage/coverage-summary.json"
|
||||
comment_template_file: ".github/comment-template.md"
|
||||
|
||||
|
||||
24
.github/workflows/onpush.yml
vendored
Normal file
24
.github/workflows/onpush.yml
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
name: Node CI
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16.x
|
||||
- name: npm install, test and lint
|
||||
run: |
|
||||
npm ci
|
||||
npm run build --workspace=packages/svgcanvas
|
||||
npm run lint
|
||||
npm run test
|
||||
env:
|
||||
CI: true
|
||||
|
||||
20
.github/workflows/onpushandpullrequest.yml
vendored
20
.github/workflows/onpushandpullrequest.yml
vendored
@@ -1,20 +0,0 @@
|
||||
name: Node CI
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 14.x
|
||||
- name: npm install, test and lint
|
||||
run: |
|
||||
npm ci
|
||||
npm run lint
|
||||
npm run test
|
||||
Reference in New Issue
Block a user