mirror of
https://gitee.com/antv/g6.git
synced 2024-12-03 12:18:40 +08:00
8af3cf0bb0
* fix: contextmenu event emit (#5380) Co-authored-by: 宋鹏捷 <songpengjie@abtnetworks.com> * feat: add image node * fix: remove empty method * fix: remove fill color for image node * feat: add image node * test: update image node snapshot * test: update controller viewport snapshot * fix: update unit test and fix bugs for image node * fix: fix code review issue * fix: remove console.log * fix: fix code review issue * ci: add ci for pull request * fix: add getIconStyle for image node * fix: fix ci issue and code review issue --------- Co-authored-by: 宋鹏捷 <songpengjie@abtnetworks.com>
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
name: build
|
|
|
|
on: [push, pull_request]
|
|
|
|
concurrency:
|
|
group: ${{github.workflow}}-${{github.event_name}}-${{github.ref}}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
lint-and-build-g6:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16
|
|
|
|
- uses: pnpm/action-setup@v2
|
|
name: Install pnpm
|
|
with:
|
|
version: 8
|
|
run_install: false
|
|
|
|
- name: Install Dependencies
|
|
run: pnpm install --no-frozen-lockfile
|
|
|
|
- name: Run CI
|
|
run: |
|
|
npm run ci
|
|
|
|
- name: Upload blob report to GitHub Actions Artifacts
|
|
if: always()
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: snapshots
|
|
path: |
|
|
packages/g6/__tests__/integration/snapshots/**/*-actual.svg
|
|
retention-days: 1
|
|
|
|
- name: Coveralls GitHub Action
|
|
uses: coverallsapp/github-action@v2.2.3
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|