2023-03-23 20:43:53 +08:00
|
|
|
name: build
|
|
|
|
|
2023-08-24 14:42:04 +08:00
|
|
|
on: [push]
|
2023-08-24 10:17:57 +08:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{github.workflow}}-${{github.event_name}}-${{github.ref}}
|
|
|
|
cancel-in-progress: true
|
2023-03-23 20:43:53 +08:00
|
|
|
|
|
|
|
jobs:
|
2023-08-24 15:11:28 +08:00
|
|
|
lint-and-build-g6:
|
2023-08-24 10:17:57 +08:00
|
|
|
runs-on: macos-latest
|
2023-03-23 20:43:53 +08:00
|
|
|
steps:
|
2023-08-24 15:11:28 +08:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Install Node.js
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 16
|
|
|
|
|
2023-08-24 19:09:11 +08:00
|
|
|
- uses: pnpm/action-setup@v2
|
|
|
|
name: Install pnpm
|
|
|
|
with:
|
|
|
|
version: 8
|
|
|
|
run_install: false
|
|
|
|
|
|
|
|
- name: Install Dependencies
|
2023-08-24 15:47:03 +08:00
|
|
|
run: pnpm install --no-frozen-lockfile
|
2023-03-23 20:43:53 +08:00
|
|
|
|
|
|
|
- name: Run CI
|
|
|
|
run: |
|
2023-08-24 10:17:57 +08:00
|
|
|
npm run ci
|
2023-08-24 14:37:11 +08:00
|
|
|
|
2023-11-29 14:24:26 +08:00
|
|
|
- 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
|